#include <memory>
#include "src/api/api.h"
#include "src/base/platform/condition-variable.h"
#include "src/base/platform/mutex.h"
#include "src/base/platform/semaphore.h"
#include "src/codegen/assembler-inl.h"
#include "src/codegen/assembler.h"
#include "src/codegen/macro-assembler-inl.h"
#include "src/codegen/macro-assembler.h"
#include "src/codegen/reloc-info-inl.h"
#include "src/common/globals.h"
#include "src/handles/global-handles-inl.h"
#include "src/handles/handles-inl.h"
#include "src/handles/handles.h"
#include "src/handles/local-handles-inl.h"
#include "src/handles/persistent-handles.h"
#include "src/heap/heap.h"
#include "src/heap/local-heap-inl.h"
#include "src/heap/marking-state-inl.h"
#include "src/heap/parked-scope.h"
#include "src/heap/safepoint.h"
#include "src/objects/heap-number.h"
#include "src/objects/heap-object.h"
#include "test/cctest/cctest.h"
#include "test/cctest/heap/heap-utils.h"
namespace v8 {
namespace internal {
namespace {
void CreateFixedArray(Heap* heap, Address start, int size) { … }
const int kNumIterations = …;
const int kSmallObjectSize = …;
const int kMediumObjectSize = …;
void AllocateSomeObjects(LocalHeap* local_heap) { … }
}
class ConcurrentAllocationThread final : public v8::base::Thread { … };
UNINITIALIZED_TEST(ConcurrentAllocationInOldSpace) { … }
UNINITIALIZED_TEST(ConcurrentAllocationInOldSpaceFromMainThread) { … }
UNINITIALIZED_TEST(ConcurrentAllocationWhileMainThreadIsParked) { … }
UNINITIALIZED_TEST(ConcurrentAllocationWhileMainThreadParksAndUnparks) { … }
UNINITIALIZED_TEST(ConcurrentAllocationWhileMainThreadRunsWithSafepoints) { … }
class LargeObjectConcurrentAllocationThread final : public v8::base::Thread { … };
UNINITIALIZED_TEST(ConcurrentAllocationInLargeSpace) { … }
const int kWhiteIterations = …;
class ConcurrentBlackAllocationThread final : public v8::base::Thread { … };
UNINITIALIZED_TEST(ConcurrentBlackAllocation) { … }
class ConcurrentWriteBarrierThread final : public v8::base::Thread { … };
UNINITIALIZED_TEST(ConcurrentWriteBarrier) { … }
class ConcurrentRecordRelocSlotThread final : public v8::base::Thread { … };
UNINITIALIZED_TEST(ConcurrentRecordRelocSlot) { … }
}
}