Commit 750e9699 authored by Dominik Inführ's avatar Dominik Inführ Committed by Commit Bot

[heap] Move LocalHeap::IsSafepointRequested into header

This will allow inlining of this function.

Bug: v8:10315
Change-Id: I6b9db641b00e215cf58b82a9a9a5cf9e676f3f02
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2323354
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69116}
parent c7643fe4
......@@ -107,10 +107,6 @@ void LocalHeap::RequestSafepoint() {
safepoint_requested_.store(true, std::memory_order_relaxed);
}
bool LocalHeap::IsSafepointRequested() {
return safepoint_requested_.load(std::memory_order_relaxed);
}
void LocalHeap::Safepoint() {
if (IsSafepointRequested()) {
ClearSafepointRequested();
......
......@@ -89,7 +89,9 @@ class V8_EXPORT_PRIVATE LocalHeap {
void EnsurePersistentHandles();
bool IsSafepointRequested();
V8_INLINE bool IsSafepointRequested() {
return safepoint_requested_.load(std::memory_order_relaxed);
}
void ClearSafepointRequested();
void EnterSafepoint();
......
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