summaryrefslogtreecommitdiff
path: root/src/space_test.cc
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2012-08-02 14:55:54 -0700
committer Mathieu Chartier <mathieuc@google.com> 2012-08-03 12:41:54 -0700
commitdcf8d7283bd51714f3faa55b631ae4103dc98b51 (patch)
treece4f6f1b836387d9b448fa1583295a38d7d743b8 /src/space_test.cc
parent259487a86ea29c840d586610f099e8177aab3f40 (diff)
Fix zygote live/mark bitmap size.
Fixed some errors with the sizes of mark/live bitmaps after zygote space creation. This was causing us to occasionally have overlapping mark/live bitmaps. Added a new verify objects mode called VERIFY_OBJECT_FAST which only checks objects and not their classes. Refactored/optimized some of the scanning code to use xor to clear bits instead of and+not. Change-Id: Iec87d9157f69e6a558e300950b51d8781679e3f7
Diffstat (limited to 'src/space_test.cc')
-rw-r--r--src/space_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/space_test.cc b/src/space_test.cc
index f377a6142c..c1c1dca895 100644
--- a/src/space_test.cc
+++ b/src/space_test.cc
@@ -70,6 +70,10 @@ TEST_F(SpaceTest, Init) {
}
}
+// TODO: This test is not very good, we should improve it.
+// The test should do more allocations before the creation of the ZygoteSpace, and then do
+// allocations after the ZygoteSpace is created. The test should also do some GCs to ensure that
+// the GC works with the ZygoteSpace.
TEST_F(SpaceTest, ZygoteSpace) {
AllocSpace* space(Space::CreateAllocSpace("test", 4 * MB, 16 * MB, 16 * MB, NULL));
ASSERT_TRUE(space != NULL);