Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Maoni0
Copy link
Member

@Maoni0 Maoni0 commented Feb 11, 2025

will add description soon.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/gc
See info in area-owners.md if you want to be subscribed.

@@ -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,
Copy link
Member

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)
Copy link
Member

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:
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants