Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mono/sgen/sgen-gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3089,6 +3089,9 @@ sgen_gc_collect (int generation)
if (generation > 1)
generation = 1;
sgen_perform_collection (0, generation, "user request", TRUE, TRUE);
/* Make sure we don't exceed heap size allowance by promoting */
if (generation == GENERATION_NURSERY && sgen_need_major_collection (0))
sgen_perform_collection (0, GENERATION_OLD, "Minor allowance", FALSE, TRUE);
UNLOCK_GC;
}

Expand Down