Skip to content

Conversation

@kouvel
Copy link
Contributor

@kouvel kouvel commented Jan 7, 2021

  • Simplifies Disable TC for UnmanagedCallersOnly methods. #46550 and fixes some issues
  • Disables call counting and adjusts the tier appropriately for UnmanagedCallersOnly methods
  • Fixes optimization flags sent to the JIT for the default code version when call counting is disabled, including when an UnmanagedCallersOnly method is attributed with AggressiveOptimization. On the default code version path previously it wasn't checking if call counting was disabled, and since that's an expensive check to add on that path, added a flag to PrepareCodeConfig.
  • Fixes some miscellaneous inconsistencies between call counting enablement, optimization tier, and jit flags

- Simplifies #46550 and fixes some issues
- Disables call counting and adjusts the tier appropriately for `UnmanagedCallersOnly` methods
- Fixes optimization flags sent to the JIT for the default code version when call counting is disabled, including when an `UnmanagedCallersOnly` method is attributed with `AggressiveOptimization`. On the default code version path previously it wasn't checking if call counting was disabled, and since that's an expensive check to add on that path, added a flag to `PrepareCodeConfig`.
- Fixes some miscellaneous inconsistencies between call counting enablement, optimization tier, and jit flags
@kouvel kouvel added this to the 6.0.0 milestone Jan 7, 2021
@kouvel kouvel self-assigned this Jan 7, 2021
Copy link
Member

@noahfalk noahfalk left a comment

Choose a reason for hiding this comment

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

LGTM

@kouvel kouvel merged commit fe6d734 into dotnet:master Jan 19, 2021
@kouvel kouvel deleted the TierJitFlagsFix branch January 19, 2021 13:06
@ghost ghost locked as resolved and limited conversation to collaborators Feb 18, 2021
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.

3 participants