Commit 48aa9df7 authored by Steve Blackburn's avatar Steve Blackburn Committed by Commit Bot

The TPH collector API needs to return a boolean.

Bug: v8:9533

Change-Id: Ia2239a591abf68f64efe4a993671b7184a5cf5cf
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2013115
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65932}
parent d968ae0a
......@@ -1948,6 +1948,10 @@ bool Heap::PerformGarbageCollection(
GarbageCollector collector, const v8::GCCallbackFlags gc_callback_flags) {
DisallowJavascriptExecution no_js(isolate());
if (V8_ENABLE_THIRD_PARTY_HEAP_BOOL) {
return tp_heap_->CollectGarbage();
}
size_t freed_global_handles = 0;
if (!IsYoungGenerationCollector(collector)) {
......
......@@ -25,7 +25,7 @@ class Heap {
Address GetObjectFromInnerPointer(Address inner_pointer);
void CollectGarbage();
bool CollectGarbage();
};
} // namespace third_party_heap
......
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