Commit 0eeee7ce authored by mlippautz's avatar mlippautz Committed by Commit bot

[heap] Allow repeatedly setting EmbedderHeapTracer

Allow swapping the tracer if not in a GC.

BUG=chromium:468240
TBR=ulan@chromium.org
NOTRY=true

Review-Url: https://codereview.chromium.org/2475503004
Cr-Commit-Position: refs/heads/master@{#40719}
parent c887113d
...@@ -5552,8 +5552,7 @@ void Heap::NotifyDeserializationComplete() { ...@@ -5552,8 +5552,7 @@ void Heap::NotifyDeserializationComplete() {
} }
void Heap::SetEmbedderHeapTracer(EmbedderHeapTracer* tracer) { void Heap::SetEmbedderHeapTracer(EmbedderHeapTracer* tracer) {
DCHECK_NOT_NULL(tracer); DCHECK_EQ(gc_state_, HeapState::NOT_IN_GC);
CHECK_NULL(embedder_heap_tracer_);
embedder_heap_tracer_ = tracer; embedder_heap_tracer_ = tracer;
} }
......
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