diff options
author | 2019-03-22 13:38:57 +0000 | |
---|---|---|
committer | 2019-03-25 16:54:37 +0000 | |
commit | 179b7c61ea6769b99f70c80a7a89cbb212423ec2 (patch) | |
tree | 06130898bfb2d8c3f71f4fe181277f20e1942726 /runtime/debugger.cc | |
parent | c8b7d445e02b752a68d824e2bc69658dfb76288a (diff) |
ObjPtr<>-ify String allocations, fix stale refs.
ObjPtr<>-ify String allocation functions and related code
and remove some unnecessary calls to ObjPtr<>::Ptr(). Fix
stale reference uses in reference_table_test and stub_test.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 31113334
Change-Id: I42927fb8b7240e5132188f73318b2ccb218748fd
Diffstat (limited to 'runtime/debugger.cc')
-rw-r--r-- | runtime/debugger.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc index 663af814cd..5443ace60c 100644 --- a/runtime/debugger.cc +++ b/runtime/debugger.cc @@ -1346,7 +1346,7 @@ JDWP::JdwpError Dbg::SetArrayElements(JDWP::ObjectId array_id, int offset, int c JDWP::JdwpError Dbg::CreateString(const std::string& str, JDWP::ObjectId* new_string_id) { Thread* self = Thread::Current(); - mirror::String* new_string = mirror::String::AllocFromModifiedUtf8(self, str.c_str()); + ObjPtr<mirror::String> new_string = mirror::String::AllocFromModifiedUtf8(self, str.c_str()); if (new_string == nullptr) { DCHECK(self->IsExceptionPending()); self->ClearException(); |