39 using namespace ::v8::internal;
43 VirtualMemory* vm =
new VirtualMemory(1 *
MB);
44 CHECK(vm->IsReserved());
45 void* block_addr = vm->address();
46 size_t block_size = 4 *
KB;
47 CHECK(vm->Commit(block_addr, block_size,
false));
49 int* addr =
static_cast<int*
>(block_addr);
51 CHECK(vm->Uncommit(block_addr, block_size));
56 TEST(GetCurrentProcessId) {
57 CHECK_EQ(static_cast<int>(getpid()), OS::GetCurrentProcessId());
#define CHECK_EQ(expected, value)