diff options
| author | 2016-03-24 14:33:39 +0000 | |
|---|---|---|
| committer | 2016-03-24 14:33:39 +0000 | |
| commit | 1345aa365e8baae25d2b3a859a4858fffbe6b11f (patch) | |
| tree | caeaad92dd1a4cd7b02bd8f670c257fe6a5267cd | |
| parent | 594973c83bb9187e392a7daf61b570dfe0aa3e08 (diff) | |
| parent | 484fb9fde79c9c36d186cd2c7cfd8ad51f2ffead (diff) | |
Merge "Fix stub_test after semantic conflicting merge."
| -rw-r--r-- | runtime/arch/stub_test.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/runtime/arch/stub_test.cc b/runtime/arch/stub_test.cc index 759f8079be..969a038523 100644 --- a/runtime/arch/stub_test.cc +++ b/runtime/arch/stub_test.cc @@ -2003,16 +2003,15 @@ TEST_F(StubTest, IMT) { // We construct the ImtConflictTable ourselves, as we cannot go into the runtime stub // that will create it: the runtime stub expects to be called by compiled code. - ArtMethod* runtime_conflict_method = Runtime::Current()->GetImtConflictMethod(); LinearAlloc* linear_alloc = Runtime::Current()->GetLinearAlloc(); ArtMethod* conflict_method = Runtime::Current()->CreateImtConflictMethod(linear_alloc); - ImtConflictTable* runtime_conflict_table = - runtime_conflict_method->GetImtConflictTable(sizeof(void*)); + static ImtConflictTable::Entry empty_entry = { nullptr, nullptr }; + ImtConflictTable* empty_conflict_table = reinterpret_cast<ImtConflictTable*>(&empty_entry); void* data = linear_alloc->Alloc( self, - ImtConflictTable::ComputeSizeWithOneMoreEntry(runtime_conflict_table)); + ImtConflictTable::ComputeSizeWithOneMoreEntry(empty_conflict_table)); ImtConflictTable* new_table = new (data) ImtConflictTable( - runtime_conflict_table, inf_contains, contains_amethod); + empty_conflict_table, inf_contains, contains_amethod); conflict_method->SetImtConflictTable(new_table); size_t result = |