Skip to content

Delete FEATURE_CORRUPTING_EXCEPTIONS#35938

Merged
jkotas merged 5 commits intodotnet:masterfrom
jkotas:corrupting-exceptions
May 7, 2020
Merged

Delete FEATURE_CORRUPTING_EXCEPTIONS#35938
jkotas merged 5 commits intodotnet:masterfrom
jkotas:corrupting-exceptions

Conversation

@jkotas
Copy link
Member

@jkotas jkotas commented May 7, 2020

No description provided.

jkotas added 3 commits May 6, 2020 21:21
Ability to catch corrupting exceptions was disabled in .NET Core since early days for security reasons. This is still disabled after this change, but achieved in much simpler way without the full corrupting exceptions machinery.
@jkotas jkotas force-pushed the corrupting-exceptions branch from 5c05989 to 0bf8a16 Compare May 7, 2020 04:22
Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo the nits. Very nice cleanup, I would not have expected so much stuff to go away.

STATIC_CONTRACT_GC_TRIGGERS;
STATIC_CONTRACT_MODE_COOPERATIVE;

LOG((LF_EH, LL_INFO100, "RealCOMPlusThrow throwing %s\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be good to preserve this LOG (move it to the RealCOMPlusThrow)?

Co-authored-by: Jan Vorlicek <janvorli@microsoft.com>
@stephentoub
Copy link
Member

What did all this code do that's being removed? Is HandleProcessCorruptedStateExceptionsAttribute meaningful after this PR?

@jkotas
Copy link
Member Author

jkotas commented May 7, 2020

HandleProcessCorruptedStateExceptionsAttribute was not meaningful even before this change. #31157 tracks making it obsolete.

It was disabled in #7272, without the code being actually removed.

@stephentoub
Copy link
Member

It was disabled in #7272, without the code being actually removed.

Alrighty then :)

@jkotas jkotas merged commit 5178041 into dotnet:master May 7, 2020
@jkotas jkotas deleted the corrupting-exceptions branch May 7, 2020 18:59
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants