Re-enable large object space.
Switch from continuous to discontinuous LOS to avoid latent bugs being exposed
by kernel changes.
Change-Id: I150a3d8635f7e8ce0af465e135b328f9a65007c1
diff --git a/src/gc/large_object_space.cc b/src/gc/large_object_space.cc
index a589e67..81f048c 100644
--- a/src/gc/large_object_space.cc
+++ b/src/gc/large_object_space.cc
@@ -201,6 +201,9 @@
CHECK(!chunk->IsFree());
size_t allocation_size = chunk->GetSize();
+ if (kIsDebugBuild) {
+ memset(obj, 0xEB, allocation_size);
+ }
madvise(obj, allocation_size, MADV_DONTNEED);
num_objects_allocated_--;
num_bytes_allocated_ -= allocation_size;