Skip to content

Commit

Permalink
higher ratio of gen0
Browse files Browse the repository at this point in the history
  • Loading branch information
VSadov committed Jun 24, 2024
1 parent 22d70b8 commit a05d762
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49322,10 +49322,10 @@ bool GCHeap::StressHeap(gc_alloc_context * context)

int rgen = StressRNG(100);

// gen0:gen1:gen2 distribution: 80:15:5
if (rgen >= 95)
// gen0:gen1:gen2 distribution: 90:8:2
if (rgen >= 98)
rgen = 2;
else if (rgen >= 80)
else if (rgen >= 90)
rgen = 1;
else
rgen = 0;
Expand Down

0 comments on commit a05d762

Please sign in to comment.