Commit bfd4df03 authored by Hannes Payer's avatar Hannes Payer Committed by Commit Bot

[heap] Increase scope of CodeSpaceMemoryModificationScope to incorporate all code space writes.

Bug: chromium:774108,v8:6792
Change-Id: I7a458991921b5241c11db8999be433f4b33ce639
Reviewed-on: https://chromium-review.googlesource.com/738144Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Hannes Payer <hpayer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48970}
parent 868b1b74
......@@ -1651,6 +1651,8 @@ void Heap::MarkCompact() {
uint64_t size_of_objects_before_gc = SizeOfObjects();
CodeSpaceMemoryModificationScope code_modifcation(this);
mark_compact_collector()->Prepare();
ms_count_++;
......
......@@ -3754,7 +3754,6 @@ void MarkCompactCollector::Sweeper::AddSweptPageSafe(PagedSpace* space,
void MarkCompactCollector::Evacuate() {
TRACE_GC(heap()->tracer(), GCTracer::Scope::MC_EVACUATE);
base::LockGuard<base::Mutex> guard(heap()->relocation_mutex());
CodeSpaceMemoryModificationScope code_modifcation(heap());
{
TRACE_GC(heap()->tracer(), GCTracer::Scope::MC_EVACUATE_PROLOGUE);
......
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