projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf3bf7a
)
Avoid promoting in sweep_in_plan when we already decided not to promote (#72998)
author
Andrew Au
<andrewau@microsoft.com>
Thu, 28 Jul 2022 19:52:19 +0000
(12:52 -0700)
committer
GitHub
<noreply@github.com>
Thu, 28 Jul 2022 19:52:19 +0000
(12:52 -0700)
src/coreclr/gc/gc.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/gc/gc.cpp
b/src/coreclr/gc/gc.cpp
index
cd93843
..
e860430
100644
(file)
--- a/
src/coreclr/gc/gc.cpp
+++ b/
src/coreclr/gc/gc.cpp
@@
-30688,7
+30688,7
@@
bool gc_heap::should_sweep_in_plan (heap_segment* region)
sip_p = true;
}
- if (
new_gen_num < max_generation
)
+ if (
settings.promotion && (new_gen_num < max_generation)
)
{
int old_card_surv_ratio =
(int)(((double)heap_segment_old_card_survived (region) * 100.0) / (double)basic_region_size);