#include "src/api/api.h"
#include "src/base/platform/semaphore.h"
#include "src/handles/handles-inl.h"
#include "src/handles/local-handles-inl.h"
#include "src/handles/persistent-handles.h"
#include "src/heap/heap.h"
#include "src/heap/local-heap.h"
#include "src/heap/parked-scope.h"
#include "src/objects/contexts.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
using ConcurrentScriptContextTableTest = TestWithContext;
namespace internal {
namespace {
std::atomic<int> g_initialized_entries;
class ScriptContextTableAccessUsedThread final : public v8::base::Thread { … };
class AccessScriptContextTableThread final : public v8::base::Thread { … };
TEST_F(ConcurrentScriptContextTableTest, ScriptContextTable_Extend) { … }
TEST_F(ConcurrentScriptContextTableTest,
ScriptContextTable_AccessScriptContextTable) { … }
}
}
}