diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2014-03-31 15:14:47 -0700 |
---|---|---|
committer | Hiroshi Yamauchi <yamauchi@google.com> | 2014-03-31 17:40:21 -0700 |
commit | 624468cd401cc1ac0dd70c746301e0788a597759 (patch) | |
tree | b21c389d43e25c3d95208c9d2f3f1bc81355a4e5 /runtime/gc/space/space_test.h | |
parent | cfd5acf281b0c509f86b13d73c6a8dfa3ea9922c (diff) | |
download | art-624468cd401cc1ac0dd70c746301e0788a597759.zip art-624468cd401cc1ac0dd70c746301e0788a597759.tar.gz art-624468cd401cc1ac0dd70c746301e0788a597759.tar.bz2 |
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
Diffstat (limited to 'runtime/gc/space/space_test.h')
-rw-r--r-- | runtime/gc/space/space_test.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<kVerifyNone>(); size_t header_size = SizeOfZeroLengthByteArray(); |