Commit 5acf8ec0 authored by Dominik Inführ's avatar Dominik Inführ Committed by Commit Bot

[heap] Reduce new space size in safepoint

New space size needs to be adjusted during global safepoint.

Bug: v8:10315
Change-Id: I670024faa55ce68a4091af6f358f45d20c66fa0b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2239573Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69301}
parent 8a9e3f64
......@@ -1131,6 +1131,11 @@ void Heap::GarbageCollectionEpilogueInSafepoint() {
if (FLAG_code_stats) ReportCodeStatistics("After GC");
if (FLAG_check_handle_count) CheckHandleCount();
#endif
{
TRACE_GC(tracer(), GCTracer::Scope::HEAP_EPILOGUE_REDUCE_NEW_SPACE);
ReduceNewSpaceSize();
}
}
void Heap::GarbageCollectionEpilogue() {
......@@ -1173,11 +1178,6 @@ void Heap::GarbageCollectionEpilogue() {
#endif // DEBUG
last_gc_time_ = MonotonicallyIncreasingTimeInMs();
{
TRACE_GC(tracer(), GCTracer::Scope::HEAP_EPILOGUE_REDUCE_NEW_SPACE);
ReduceNewSpaceSize();
}
}
class GCCallbacksScope {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment