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 26, 2024
1 parent 202a401 commit 19a2969
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 19a2969

Please sign in to comment.