Commit 98999604 authored by Michael Lippautz's avatar Michael Lippautz Committed by Chromium LUCI CQ

heap: Forward termination GC call when using Oilpan library

V8-side change: https://crrev.com/c/2631504

Bug: 1056170
Change-Id: Idd1e1f9d2fcd6804d0d9a010cde83c2fa34a68e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2636313Reviewed-by: default avatarOmer Katz <omerkatz@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#844599}
parent bf61cf27
......@@ -43,4 +43,8 @@ ThreadState::~ThreadState() {
DCHECK(IsCreationThread());
}
void ThreadState::RunTerminationGC() {
cpp_heap_.Terminate();
}
} // namespace blink
......@@ -91,6 +91,8 @@ class ThreadState final {
// TODO(1056170): Remove when removing Oilpan from Blink.
}
void RunTerminationGC();
private:
// Main-thread ThreadState avoids TLS completely by using a regular global.
// The object is manually managed and should not rely on global ctor/dtor.
......
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