summaryrefslogtreecommitdiff
path: root/runtime/native/java_lang_Class.cc
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2019-05-16 16:47:08 +0100
committerVladimir Marko <vmarko@google.com>2019-05-17 08:10:30 +0000
commit9b81ac36e161fd993eab17b43b93a96e8c63b5cc (patch)
treebac59dd8a62ae9f410c707a4086c330b8923a55b /runtime/native/java_lang_Class.cc
parent92ed90ca3897ae7861b22aa12740065152839649 (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/native/java_lang_Class.cc')
-rw-r--r--runtime/native/java_lang_Class.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/native/java_lang_Class.cc b/runtime/native/java_lang_Class.cc
index 2b75c59c2a..f69d1bc66c 100644
--- a/runtime/native/java_lang_Class.cc
+++ b/runtime/native/java_lang_Class.cc
@@ -823,7 +823,7 @@ static jobject Class_newInstance(JNIEnv* env, jobject javaThis) {
// Invoke the string allocator to return an empty string for the string class.
if (klass->IsStringClass()) {
gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator();
- ObjPtr<mirror::Object> obj = mirror::String::AllocEmptyString<true>(soa.Self(), allocator_type);
+ ObjPtr<mirror::Object> obj = mirror::String::AllocEmptyString(soa.Self(), allocator_type);
if (UNLIKELY(soa.Self()->IsExceptionPending())) {
return nullptr;
} else {