-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix the regression in regions when handling heavily pinning scenarios #112403
base: main
Are you sure you want to change the base?
Conversation
Tagging subscribers to this area: @dotnet/gc |
@@ -3376,61 +3374,61 @@ gc_heap::dt_low_ephemeral_space_p (gc_tuning_point tp) | |||
|
|||
BOOL | |||
gc_heap::dt_high_frag_p (gc_tuning_point tp, | |||
int gen_number, | |||
BOOL elevate_p) | |||
int gen_number, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: Looks like the indentation changed here.
{ | ||
size_t maxgen_size = generation_size (max_generation); | ||
float frag_ratio = (maxgen_size ? ((float)dd_fragmentation (dynamic_data_of (max_generation)) / (float)maxgen_size) : 0.0f); | ||
if (frag_ratio > 0.65) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth creating a global const variable for the 0.65?
{ | ||
dynamic_data* dd = dynamic_data_of (gen_number); | ||
float fragmentation_burden = 0; | ||
case tuning_deciding_condemned_gen: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: Indentation seems to be affected here, as well.
will add description soon.