# We do not yet shrink weak maps after they have been emptied by the GC
test-weakmaps/Shrinking: FAIL
-# Measurement of memory consumption seems bogus.
-# Revision 13291 only slightly decreases the size of the isolate.
-test-mark-compact/BootUpMemoryUse: PASS || FAIL
-
##############################################################################
[ $arch == arm ]
}
+// The memory use computed this way is not entirely accurate and depends on
+// the way malloc allocates memory. That's why the memory use may seem to
+// increase even though the sum of the allocated object sizes decreases. It
+// also means that the memory use depends on the kernel and stdlib.
static intptr_t MemoryInUse() {
intptr_t memory_use = 0;
if (initial_memory >= 0) {
InitializeVM();
intptr_t delta = MemoryInUse() - initial_memory;
- if (sizeof(initial_memory) == 8) {
+ printf("delta: %" V8_PTR_PREFIX "d kB\n", delta / 1024);
+ if (sizeof(initial_memory) == 8) { // 64-bit.
if (v8::internal::Snapshot::IsEnabled()) {
- CHECK_LE(delta, 3600 * 1024); // 3396.
+ CHECK_LE(delta, 3700 * 1024);
} else {
- CHECK_LE(delta, 4000 * 1024); // 3948.
+ CHECK_LE(delta, 4200 * 1024);
}
- } else {
+ } else { // 32-bit.
if (v8::internal::Snapshot::IsEnabled()) {
- CHECK_LE(delta, 2600 * 1024); // 2400.
+ CHECK_LE(delta, 2600 * 1024);
} else {
- CHECK_LE(delta, 3000 * 1024); // 2920.
+ CHECK_LE(delta, 3000 * 1024);
}
}
}