diff options
author | 2019-05-16 16:47:08 +0100 | |
---|---|---|
committer | 2019-05-17 08:10:30 +0000 | |
commit | 9b81ac36e161fd993eab17b43b93a96e8c63b5cc (patch) | |
tree | bac59dd8a62ae9f410c707a4086c330b8923a55b /runtime/debugger.cc | |
parent | 92ed90ca3897ae7861b22aa12740065152839649 (diff) |
Add default argument kIsInstrumented=true.
kIsInstrumented=false is reserved for use by specialized
entrypoints which are used only when we can ensure that
the code is not instrumented. So add the default argument
to simplify all other callers.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: I3419795794fec9a1733ab3ad698b6415dbac679d
Diffstat (limited to 'runtime/debugger.cc')
-rw-r--r-- | runtime/debugger.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc index c042d19b71..02fb5b6da4 100644 --- a/runtime/debugger.cc +++ b/runtime/debugger.cc @@ -1375,7 +1375,7 @@ JDWP::JdwpError Dbg::CreateObject(JDWP::RefTypeId class_id, JDWP::ObjectId* new_ if (c->IsStringClass()) { // Special case for java.lang.String. gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); - new_object = mirror::String::AllocEmptyString<true>(self, allocator_type); + new_object = mirror::String::AllocEmptyString(self, allocator_type); } else { new_object = c->AllocObject(self); } @@ -1404,7 +1404,7 @@ JDWP::JdwpError Dbg::CreateArrayObject(JDWP::RefTypeId array_class_id, uint32_t Thread* self = Thread::Current(); gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); ObjPtr<mirror::Array> new_array = - mirror::Array::Alloc<true>(self, c, length, c->GetComponentSizeShift(), allocator_type); + mirror::Array::Alloc(self, c, length, c->GetComponentSizeShift(), allocator_type); if (new_array == nullptr) { DCHECK(self->IsExceptionPending()); self->ClearException(); |