18 return !heap_base.IsGCForbidden();
24 heap_base.EnterDisallowGCScope();
30 heap_base.LeaveDisallowGCScope();
35 : heap_handle_(heap_handle) {
46 heap_base.EnterNoGCScope();
52 heap_base.LeaveNoGCScope();
57 : heap_handle_(heap_handle) {
static HeapBase & From(cppgc::HeapHandle &heap_handle)
DisallowGarbageCollectionScope(HeapHandle &heap_handle)
static bool IsGarbageCollectionAllowed(HeapHandle &heap_handle)
HeapHandle & heap_handle_
static void Enter(HeapHandle &heap_handle)
static void Leave(HeapHandle &heap_handle)
~DisallowGarbageCollectionScope()
NoGarbageCollectionScope(HeapHandle &heap_handle)
static void Leave(HeapHandle &heap_handle)
~NoGarbageCollectionScope()
static void Enter(HeapHandle &heap_handle)
HeapHandle & heap_handle_