diff options
| author | 2018-11-09 17:12:23 +0000 | |
|---|---|---|
| committer | 2018-11-12 15:26:21 +0000 | |
| commit | 104883b04617a850adf11f05e57c2fd29e09c83c (patch) | |
| tree | 51d436588505a3ead506d633bdf97c9b4c934ae0 /runtime/gc/space/image_space.cc | |
| parent | 00e96d054e2b656d4d0f99fc141d1701af4dba23 (diff) | |
Clean up primitive array helpers in Object.
Refactor these helpers and avoid read barriers. Remove
Class::Is{Int,Long}ArrayClass() and use the Object helpers
instead.
Remove the AsByteSizedArray() and AsShortSizedArray()
helpers that essentially break the type system and rewrite
their users, adding appropriate notes. {Float,Double}Array
uses in Unsafe would have previously failed a DCHECK().
Test: Additional test in 004-UnsafeTest.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: I88b7e3df7de883f64cfc5eb437a40646f2884685
Diffstat (limited to 'runtime/gc/space/image_space.cc')
| -rw-r--r-- | runtime/gc/space/image_space.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/space/image_space.cc b/runtime/gc/space/image_space.cc index b46abfbf6e..10f395b49c 100644 --- a/runtime/gc/space/image_space.cc +++ b/runtime/gc/space/image_space.cc @@ -832,7 +832,7 @@ class ImageSpace::Loader { reinterpret_cast<uintptr_t>(array) + kObjectAlignment); // If the bit is not set then the contents have not yet been updated. if (!visited_->Test(contents_bit)) { - array->Fixup<kVerifyNone, kWithoutReadBarrier>(array, pointer_size_, visitor); + array->Fixup<kVerifyNone>(array, pointer_size_, visitor); visited_->Set(contents_bit); } } |