// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_HEAP_COLLECTION_BARRIER_H_ #define V8_HEAP_COLLECTION_BARRIER_H_ #include <atomic> #include "src/base/platform/condition-variable.h" #include "src/base/platform/elapsed-timer.h" #include "src/base/platform/mutex.h" #include "src/heap/local-heap.h" #include "src/logging/counters.h" namespace v8 { namespace internal { class Heap; // This class stops and resumes all background threads waiting for GC. class CollectionBarrier { … }; } // namespace internal } // namespace v8 #endif // V8_HEAP_COLLECTION_BARRIER_H_