From 624468cd401cc1ac0dd70c746301e0788a597759 Mon Sep 17 00:00:00 2001 From: Hiroshi Yamauchi Date: Mon, 31 Mar 2014 15:14:47 -0700 Subject: Make the support code for read barriers a bit more general. Add an option for Baker in addition to Brooks. Bug: 12687968 Change-Id: I8a31db817ff6686c72951b6534f588228e270b11 --- runtime/gc/space/space_test.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/gc/space/space_test.h') diff --git a/runtime/gc/space/space_test.h b/runtime/gc/space/space_test.h index 6d3602c..5c735df 100644 --- a/runtime/gc/space/space_test.h +++ b/runtime/gc/space/space_test.h @@ -85,8 +85,8 @@ class SpaceTest : public CommonRuntimeTest { EXPECT_GE(size, SizeOfZeroLengthByteArray()); EXPECT_TRUE(byte_array_class != nullptr); o->SetClass(byte_array_class); - if (kUseBrooksPointer) { - o->SetBrooksPointer(o); + if (kUseBrooksReadBarrier) { + o->SetReadBarrierPointer(o); } mirror::Array* arr = o->AsArray(); size_t header_size = SizeOfZeroLengthByteArray(); -- cgit v1.1