Skip to content

Commit d4e9306

Browse files
kouveljkotas
authored andcommitted
Add MethodImplOptions.AggressiveOptimization and use it for tiering (#20009)
Add MethodImplOptions.AggressiveOptimization and use it for tiering Part of fix for https://github.com/dotnet/corefx/issues/32235 Workaround for https://github.com/dotnet/coreclr/issues/19751 - Added and set CORJIT_FLAG_AGGRESSIVE_OPT to indicate that a method is flagged with AggressiveOptimization - For a method flagged with AggressiveOptimization, tiering uses a foreground tier 1 JIT on first call to the method, skipping the tier 0 JIT and call counting - When tiering is disabled, a method flagged with AggressiveOptimization does not use r2r-pregenerated code - R2r crossgen does not generate code for a method flagged with AggressiveOptimization Signed-off-by: dotnet-bot <[email protected]>
1 parent e23f83e commit d4e9306

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Common/src/CoreLib/System/Runtime/CompilerServices/MethodImplOptions.cs

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public enum MethodImplOptions
1616
NoOptimization = 0x0040,
1717
PreserveSig = 0x0080,
1818
AggressiveInlining = 0x0100,
19+
AggressiveOptimization = 0x0200,
1920
InternalCall = 0x1000
2021
}
2122
}

0 commit comments

Comments
 (0)