Skip to content

[release/9.0-preview2] Fix the new EH with hot-cold split code#99015

Merged
carlossanlop merged 1 commit into
release/9.0-preview2from
backport/pr-99012-to-release/9.0-preview2
Feb 27, 2024
Merged

[release/9.0-preview2] Fix the new EH with hot-cold split code#99015
carlossanlop merged 1 commit into
release/9.0-preview2from
backport/pr-99012-to-release/9.0-preview2

Conversation

@github-actions

@github-actions github-actions Bot commented Feb 27, 2024

Copy link
Copy Markdown
Contributor

Backport of #99012 to release/9.0-preview2

/cc @carlossanlop @janvorli

Customer Impact

  • Customer reported
  • Found internally

When a customer compiles their own application with R2R and hot/cold code split enabled, the exception handling would miss catch / finally / exception filters in the cold code.

Regression

  • Yes
  • No

#98570 - enables the new exception handling by default.

Testing

Local testing and debugging of the tests that have failed due to the problem.

Risk

Low, it doesn't influence behavior with hot-cold splitting disabled, which is the default and has been well tested during the past months.

The new EH was not taking into account the fact that with hot-cold split
methods, the offset used for looking up EH funclets need to be computed
as if the hot and cold regions were consecutive in memory. That have
caused failures in a number of tests when the tests themselves were
compiled with R2R and hot-cold split enabled.

Close #98915, #98916, #98917, #98918
@ghost ghost added the area-ExceptionHandling-coreclr only use for closed issues label Feb 27, 2024
@carlossanlop carlossanlop requested a review from jkotas February 27, 2024 20:22
@carlossanlop carlossanlop added this to the 9.0.0 milestone Feb 27, 2024
@janvorli janvorli added the Servicing-consider Issue for next servicing release review label Feb 27, 2024
@carlossanlop carlossanlop added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Feb 27, 2024
@carlossanlop

carlossanlop commented Feb 27, 2024

Copy link
Copy Markdown
Contributor

Approved by Tactics via email.

Need to merge the main PR first.

@carlossanlop carlossanlop merged commit bbba827 into release/9.0-preview2 Feb 27, 2024
@carlossanlop carlossanlop deleted the backport/pr-99012-to-release/9.0-preview2 branch February 27, 2024 22:38
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-ExceptionHandling-coreclr only use for closed issues Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants