| Index: test/cctest/test-mark-compact.cc
|
| diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc
|
| index 700f3222ae45b7b0d80476e3e225960c96bdd235..27123704b12ddcff5bd6d745ef851ab512ee6bfb 100644
|
| --- a/test/cctest/test-mark-compact.cc
|
| +++ b/test/cctest/test-mark-compact.cc
|
| @@ -531,18 +531,18 @@ TEST(BootUpMemoryUse) {
|
| // there we just skip the test.
|
| if (initial_memory >= 0) {
|
| InitializeVM();
|
| - intptr_t booted_memory = MemoryInUse();
|
| + intptr_t delta = MemoryInUse() - initial_memory;
|
| if (sizeof(initial_memory) == 8) {
|
| if (v8::internal::Snapshot::IsEnabled()) {
|
| - CHECK_LE(booted_memory - initial_memory, 3600 * 1024); // 3396.
|
| + CHECK_LE(delta, 3600 * 1024); // 3396.
|
| } else {
|
| - CHECK_LE(booted_memory - initial_memory, 3600 * 1024); // 3432.
|
| + CHECK_LE(delta, 4000 * 1024); // 3948.
|
| }
|
| } else {
|
| if (v8::internal::Snapshot::IsEnabled()) {
|
| - CHECK_LE(booted_memory - initial_memory, 2800 * 1024); // 2484.
|
| + CHECK_LE(delta, 2600 * 1024); // 2484.
|
| } else {
|
| - CHECK_LE(booted_memory - initial_memory, 2950 * 1024); // 2844
|
| + CHECK_LE(delta, 2950 * 1024); // 2844
|
| }
|
| }
|
| }
|
|
|