#include "src/heap/safepoint.h"
#include "src/base/platform/mutex.h"
#include "src/base/platform/platform.h"
#include "src/heap/heap.h"
#include "src/heap/local-heap.h"
#include "src/heap/parked-scope.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
namespace internal {
using SafepointTest = TestWithIsolate;
TEST_F(SafepointTest, ReachSafepointWithoutLocalHeaps) { … }
class ParkedThread final : public v8::base::Thread { … };
TEST_F(SafepointTest, StopParkedThreads) { … }
static const int kIterations = …;
class RunningThread final : public v8::base::Thread { … };
TEST_F(SafepointTest, StopRunningThreads) { … }
}
}