Index: runtime/vm/dart_api_impl_test.cc |
=================================================================== |
--- runtime/vm/dart_api_impl_test.cc (revision 43108) |
+++ runtime/vm/dart_api_impl_test.cc (working copy) |
@@ -2643,7 +2643,7 @@ |
EXPECT_EQ(kSmallExternalSize, |
isolate->heap()->ExternalInWords(Heap::kOld) * kWordSize); |
// Large enough to trigger GC in old space. Not actually allocated. |
- const intptr_t kHugeExternalSize = Heap::kHeapSizeInMB * MB; |
+ const intptr_t kHugeExternalSize = (kWordSize == 4) ? 513 * MB : 1025 * MB; |
Dart_NewWeakPersistentHandle(live, |
NULL, |
kHugeExternalSize, |