diff options
| author | 2016-01-25 20:06:11 -0800 | |
|---|---|---|
| committer | 2016-01-26 12:24:02 -0800 | |
| commit | a9d82fe8bc6960b565245b920e99107a824ca515 (patch) | |
| tree | a6ced4b8bca71232d20d91ff344c7531948b7be3 /compiler | |
| parent | 1af0204dddc1d99dc17a13eca135c1b57023c1c3 (diff) | |
Use mutator lock to guard adding and removing heap spaces
Too hard to add a new lock since dlmalloc ArtMoreCore requires
looping through the spaces while holding the allocator lock.
Bug: 22858531
Change-Id: Ieac2136da02c766b6795cd604a58798bee37ef2a
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/image_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/image_test.cc b/compiler/image_test.cc index b8416751c5..b65fb36167 100644 --- a/compiler/image_test.cc +++ b/compiler/image_test.cc @@ -181,7 +181,7 @@ void ImageTest::TestWriteRead(ImageHeader::StorageMode storage_mode) { ASSERT_NE(0U, bitmap_section.Size()); gc::Heap* heap = Runtime::Current()->GetHeap(); - ASSERT_TRUE(!heap->GetContinuousSpaces().empty()); + ASSERT_TRUE(heap->HaveContinuousSpaces()); gc::space::ContinuousSpace* space = heap->GetNonMovingSpace(); ASSERT_FALSE(space->IsImageSpace()); ASSERT_TRUE(space != nullptr); |