blob: ec267155191a3ac9d1413dfe789978804d2f24df [file] [log] [blame]
Alex Lighta7e38d82017-01-19 14:57:28 -08001/* Copyright (C) 2016 The Android Open Source Project
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3 *
4 * This file implements interfaces from the file jvmti.h. This implementation
5 * is licensed under the same terms as the file jvmti.h. The
6 * copyright and license information for the file jvmti.h follows.
7 *
8 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
9 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
10 *
11 * This code is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License version 2 only, as
13 * published by the Free Software Foundation. Oracle designates this
14 * particular file as subject to the "Classpath" exception as provided
15 * by Oracle in the LICENSE file that accompanied this code.
16 *
17 * This code is distributed in the hope that it will be useful, but WITHOUT
18 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * version 2 for more details (a copy is included in the LICENSE file that
21 * accompanied this code).
22 *
23 * You should have received a copy of the GNU General Public License version
24 * 2 along with this work; if not, write to the Free Software Foundation,
25 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26 *
27 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
28 * or visit www.oracle.com if you need additional information or have any
29 * questions.
30 */
31
32#include "ti_class_definition.h"
33
Alex Lightb7354d52017-03-30 15:17:01 -070034#include "base/array_slice.h"
Andreas Gampe85f1c572018-11-21 13:52:48 -080035#include "base/logging.h"
Andreas Gampec6ea7d02017-02-01 16:46:28 -080036#include "class_linker-inl.h"
Vladimir Markob4eb1b12018-05-24 11:09:38 +010037#include "class_root.h"
David Sehr9e734c72018-01-04 17:56:19 -080038#include "dex/dex_file.h"
Alex Lightb7354d52017-03-30 15:17:01 -070039#include "fixed_up_dex_file.h"
Alex Lighta7e38d82017-01-19 14:57:28 -080040#include "handle.h"
Andreas Gampe8cf9cb32017-07-19 09:28:38 -070041#include "handle_scope-inl.h"
Alex Lighta7e38d82017-01-19 14:57:28 -080042#include "mirror/class-inl.h"
Vladimir Markobb206de2019-03-28 10:30:32 +000043#include "mirror/class_ext-inl.h"
Alex Lighta7e38d82017-01-19 14:57:28 -080044#include "mirror/object-inl.h"
Alex Lightb7354d52017-03-30 15:17:01 -070045#include "reflection.h"
Alex Lighta7e38d82017-01-19 14:57:28 -080046#include "thread.h"
47
48namespace openjdkjvmti {
49
Alex Lightca97ada2018-02-02 09:25:31 -080050void ArtClassDefinition::InitializeMemory() const {
51 DCHECK(art::MemMap::kCanReplaceMapping);
52 VLOG(signals) << "Initializing de-quickened memory for dex file of " << name_;
Vladimir Markoc34bebf2018-08-16 16:12:49 +010053 CHECK(dex_data_mmap_.IsValid());
54 CHECK(temp_mmap_.IsValid());
55 CHECK_EQ(dex_data_mmap_.GetProtect(), PROT_NONE);
56 CHECK_EQ(temp_mmap_.GetProtect(), PROT_READ | PROT_WRITE);
Alex Lightca97ada2018-02-02 09:25:31 -080057
58 std::string desc = std::string("L") + name_ + ";";
59 std::unique_ptr<FixedUpDexFile>
Nicolas Geoffray16fc4742019-01-30 16:53:24 +000060 fixed_dex_file(FixedUpDexFile::Create(*initial_dex_file_unquickened_, desc.c_str()));
Alex Lightca97ada2018-02-02 09:25:31 -080061 CHECK(fixed_dex_file.get() != nullptr);
Vladimir Markoc34bebf2018-08-16 16:12:49 +010062 CHECK_LE(fixed_dex_file->Size(), temp_mmap_.Size());
63 CHECK_EQ(temp_mmap_.Size(), dex_data_mmap_.Size());
Alex Lightca97ada2018-02-02 09:25:31 -080064 // Copy the data to the temp mmap.
Vladimir Markoc34bebf2018-08-16 16:12:49 +010065 memcpy(temp_mmap_.Begin(), fixed_dex_file->Begin(), fixed_dex_file->Size());
Alex Lightca97ada2018-02-02 09:25:31 -080066
67 // Move the mmap atomically.
Vladimir Markoc34bebf2018-08-16 16:12:49 +010068 art::MemMap source;
69 source.swap(temp_mmap_);
Alex Lightca97ada2018-02-02 09:25:31 -080070 std::string error;
Vladimir Markoc34bebf2018-08-16 16:12:49 +010071 CHECK(dex_data_mmap_.ReplaceWith(&source, &error)) << "Failed to replace mmap for "
72 << name_ << " because " << error;
73 CHECK(dex_data_mmap_.Protect(PROT_READ));
Alex Lightca97ada2018-02-02 09:25:31 -080074}
75
Alex Light40528472017-03-28 09:07:36 -070076bool ArtClassDefinition::IsModified() const {
Alex Light64e4c142018-01-30 13:46:37 -080077 // RedefineClasses calls always are 'modified' since they need to change the current_dex_file of
Alex Light40528472017-03-28 09:07:36 -070078 // the class.
Alex Lightb7354d52017-03-30 15:17:01 -070079 if (redefined_) {
Alex Lighta7e38d82017-01-19 14:57:28 -080080 return true;
81 }
Alex Light64e4c142018-01-30 13:46:37 -080082
83 // Check to see if any change has taken place.
84 if (current_dex_file_.data() == dex_data_.data()) {
85 // no change at all.
86 return false;
87 }
88
Alex Lightca97ada2018-02-02 09:25:31 -080089 // The dex_data_ was never touched by the agents.
Vladimir Markoc34bebf2018-08-16 16:12:49 +010090 if (dex_data_mmap_.IsValid() && dex_data_mmap_.GetProtect() == PROT_NONE) {
91 if (current_dex_file_.data() == dex_data_mmap_.Begin()) {
Alex Lightca97ada2018-02-02 09:25:31 -080092 // the dex_data_ looks like it changed (not equal to current_dex_file_) but we never
93 // initialized the dex_data_mmap_. This means the new_dex_data was filled in without looking
94 // at the initial dex_data_.
95 return true;
Vladimir Markoc34bebf2018-08-16 16:12:49 +010096 } else if (dex_data_.data() == dex_data_mmap_.Begin()) {
Alex Lightca97ada2018-02-02 09:25:31 -080097 // The dex file used to have modifications but they were not added again.
98 return true;
99 } else {
100 // It's not clear what happened. It's possible that the agent got the current dex file data
101 // from some other source so we need to initialize everything to see if it is the same.
102 VLOG(signals) << "Lazy dex file for " << name_ << " was never touched but the dex_data_ is "
103 << "changed! Need to initialize the memory to see if anything changed";
104 InitializeMemory();
105 }
106 }
107
108 // We can definitely read current_dex_file_ and dex_file_ without causing page faults.
109
Alex Lighta7e38d82017-01-19 14:57:28 -0800110 // Check if the dex file we want to set is the same as the current one.
Alex Light40528472017-03-28 09:07:36 -0700111 // Unfortunately we need to do this check even if no modifications have been done since it could
112 // be that agents were removed in the mean-time so we still have a different dex file. The dex
113 // checksum means this is likely to be fairly fast.
Alex Light64e4c142018-01-30 13:46:37 -0800114 return current_dex_file_.size() != dex_data_.size() ||
115 memcmp(current_dex_file_.data(), dex_data_.data(), current_dex_file_.size()) != 0;
Alex Lightb7354d52017-03-30 15:17:01 -0700116}
117
Alex Light64e4c142018-01-30 13:46:37 -0800118jvmtiError ArtClassDefinition::InitCommon(art::Thread* self, jclass klass) {
119 art::ScopedObjectAccess soa(self);
Alex Lightb7354d52017-03-30 15:17:01 -0700120 art::ObjPtr<art::mirror::Class> m_klass(soa.Decode<art::mirror::Class>(klass));
121 if (m_klass.IsNull()) {
122 return ERR(INVALID_CLASS);
123 }
Alex Light64e4c142018-01-30 13:46:37 -0800124 initialized_ = true;
Alex Lightb7354d52017-03-30 15:17:01 -0700125 klass_ = klass;
126 loader_ = soa.AddLocalReference<jobject>(m_klass->GetClassLoader());
127 std::string descriptor_store;
128 std::string descriptor(m_klass->GetDescriptor(&descriptor_store));
129 name_ = descriptor.substr(1, descriptor.size() - 2);
130 // Android doesn't really have protection domains.
131 protection_domain_ = nullptr;
132 return OK;
133}
134
Nicolas Geoffray16fc4742019-01-30 16:53:24 +0000135static void DequickenDexFile(const art::DexFile* dex_file,
Alex Light64e4c142018-01-30 13:46:37 -0800136 const char* descriptor,
137 /*out*/std::vector<unsigned char>* dex_data)
138 REQUIRES_SHARED(art::Locks::mutator_lock_) {
Nicolas Geoffray54629202019-01-29 18:10:18 +0000139 std::unique_ptr<FixedUpDexFile> fixed_dex_file(
Nicolas Geoffray16fc4742019-01-30 16:53:24 +0000140 FixedUpDexFile::Create(*dex_file, descriptor));
Alex Light64e4c142018-01-30 13:46:37 -0800141 dex_data->resize(fixed_dex_file->Size());
142 memcpy(dex_data->data(), fixed_dex_file->Begin(), fixed_dex_file->Size());
143}
144
Alex Lightb7354d52017-03-30 15:17:01 -0700145// Gets the data surrounding the given class.
Nicolas Geoffray16fc4742019-01-30 16:53:24 +0000146static void GetDexDataForRetransformation(art::Handle<art::mirror::Class> klass,
Alex Light64e4c142018-01-30 13:46:37 -0800147 /*out*/std::vector<unsigned char>* dex_data)
Alex Lightb7354d52017-03-30 15:17:01 -0700148 REQUIRES_SHARED(art::Locks::mutator_lock_) {
149 art::StackHandleScope<3> hs(art::Thread::Current());
150 art::Handle<art::mirror::ClassExt> ext(hs.NewHandle(klass->GetExtData()));
151 const art::DexFile* dex_file = nullptr;
152 if (!ext.IsNull()) {
153 art::Handle<art::mirror::Object> orig_dex(hs.NewHandle(ext->GetOriginalDexFile()));
154 if (!orig_dex.IsNull()) {
155 if (orig_dex->IsArrayInstance()) {
156 DCHECK(orig_dex->GetClass()->GetComponentType()->IsPrimitiveByte());
Vladimir Marko4617d582019-03-28 13:48:31 +0000157 art::Handle<art::mirror::ByteArray> orig_dex_bytes(hs.NewHandle(orig_dex->AsByteArray()));
Alex Light64e4c142018-01-30 13:46:37 -0800158 dex_data->resize(orig_dex_bytes->GetLength());
159 memcpy(dex_data->data(), orig_dex_bytes->GetData(), dex_data->size());
160 return;
Alex Lightb7354d52017-03-30 15:17:01 -0700161 } else if (orig_dex->IsDexCache()) {
162 dex_file = orig_dex->AsDexCache()->GetDexFile();
163 } else {
Alex Light0ecb2362017-04-12 09:01:47 -0700164 DCHECK(orig_dex->GetClass()->DescriptorEquals("Ljava/lang/Long;"))
165 << "Expected java/lang/Long but found object of type "
166 << orig_dex->GetClass()->PrettyClass();
Alex Lightb7354d52017-03-30 15:17:01 -0700167 art::ObjPtr<art::mirror::Class> prim_long_class(
Vladimir Markob4eb1b12018-05-24 11:09:38 +0100168 art::GetClassRoot(art::ClassRoot::kPrimitiveLong));
Alex Lightb7354d52017-03-30 15:17:01 -0700169 art::JValue val;
170 if (!art::UnboxPrimitiveForResult(orig_dex.Get(), prim_long_class, &val)) {
171 // This should never happen.
Alex Light64e4c142018-01-30 13:46:37 -0800172 LOG(FATAL) << "Unable to unbox a primitive long value!";
Alex Lightb7354d52017-03-30 15:17:01 -0700173 }
174 dex_file = reinterpret_cast<const art::DexFile*>(static_cast<uintptr_t>(val.GetJ()));
175 }
176 }
177 }
178 if (dex_file == nullptr) {
179 dex_file = &klass->GetDexFile();
180 }
Mathieu Chartier75175552018-01-25 11:23:01 -0800181 std::string storage;
Nicolas Geoffray16fc4742019-01-30 16:53:24 +0000182 DequickenDexFile(dex_file, klass->GetDescriptor(&storage), dex_data);
Alex Lightb7354d52017-03-30 15:17:01 -0700183}
184
Alex Light64e4c142018-01-30 13:46:37 -0800185static bool DexNeedsDequickening(art::Handle<art::mirror::Class> klass,
186 /*out*/ bool* from_class_ext)
187 REQUIRES_SHARED(art::Locks::mutator_lock_) {
188 art::ObjPtr<art::mirror::ClassExt> ext(klass->GetExtData());
189 if (ext.IsNull()) {
190 // We don't seem to have ever been redefined so be conservative and say we need de-quickening.
191 *from_class_ext = false;
192 return true;
193 }
194 art::ObjPtr<art::mirror::Object> orig_dex(ext->GetOriginalDexFile());
195 if (orig_dex.IsNull()) {
196 // We don't seem to have ever been redefined so be conservative and say we need de-quickening.
197 *from_class_ext = false;
198 return true;
199 } else if (!orig_dex->IsArrayInstance()) {
200 // We were redefined but the original is held in a dex-cache or dex file. This means that the
201 // original dex file is the one from the disk, which might be quickened.
202 DCHECK(orig_dex->IsDexCache() || orig_dex->GetClass()->DescriptorEquals("Ljava/lang/Long;"));
203 *from_class_ext = true;
204 return true;
205 } else {
206 // An array instance means the original-dex-file is from a redefineClasses which cannot have any
207 // quickening, so it's fine to use directly.
208 DCHECK(orig_dex->GetClass()->GetComponentType()->IsPrimitiveByte());
209 *from_class_ext = true;
210 return false;
211 }
212}
213
214static const art::DexFile* GetQuickenedDexFile(art::Handle<art::mirror::Class> klass)
215 REQUIRES_SHARED(art::Locks::mutator_lock_) {
216 art::ObjPtr<art::mirror::ClassExt> ext(klass->GetExtData());
217 if (ext.IsNull() || ext->GetOriginalDexFile() == nullptr) {
218 return &klass->GetDexFile();
219 }
220
221 art::ObjPtr<art::mirror::Object> orig_dex(ext->GetOriginalDexFile());
222 DCHECK(!orig_dex->IsArrayInstance());
223 if (orig_dex->IsDexCache()) {
224 return orig_dex->AsDexCache()->GetDexFile();
225 }
226
227 DCHECK(orig_dex->GetClass()->DescriptorEquals("Ljava/lang/Long;"))
228 << "Expected java/lang/Long but found object of type "
229 << orig_dex->GetClass()->PrettyClass();
230 art::ObjPtr<art::mirror::Class> prim_long_class(
Vladimir Markob4eb1b12018-05-24 11:09:38 +0100231 art::GetClassRoot(art::ClassRoot::kPrimitiveLong));
Alex Light64e4c142018-01-30 13:46:37 -0800232 art::JValue val;
233 if (!art::UnboxPrimitiveForResult(orig_dex.Ptr(), prim_long_class, &val)) {
234 LOG(FATAL) << "Unable to unwrap a long value!";
235 }
236 return reinterpret_cast<const art::DexFile*>(static_cast<uintptr_t>(val.GetJ()));
237}
238
239template<typename GetOriginalDexFile>
240void ArtClassDefinition::InitWithDex(GetOriginalDexFile get_original,
241 const art::DexFile* quick_dex) {
242 art::Thread* self = art::Thread::Current();
243 DCHECK(quick_dex != nullptr);
Alex Lightca97ada2018-02-02 09:25:31 -0800244 if (art::MemMap::kCanReplaceMapping && kEnableOnDemandDexDequicken) {
245 size_t dequick_size = quick_dex->GetDequickenedSize();
246 std::string mmap_name("anon-mmap-for-redefine: ");
247 mmap_name += name_;
248 std::string error;
Vladimir Markoc34bebf2018-08-16 16:12:49 +0100249 dex_data_mmap_ = art::MemMap::MapAnonymous(mmap_name.c_str(),
Alex Lightca97ada2018-02-02 09:25:31 -0800250 dequick_size,
Vladimir Markoc34bebf2018-08-16 16:12:49 +0100251 PROT_NONE,
Andreas Gampe6e897762018-10-16 13:09:32 -0700252 /*low_4gb=*/ false,
Vladimir Markoc34bebf2018-08-16 16:12:49 +0100253 &error);
254 mmap_name += "-TEMP";
255 temp_mmap_ = art::MemMap::MapAnonymous(mmap_name.c_str(),
Vladimir Markoc34bebf2018-08-16 16:12:49 +0100256 dequick_size,
257 PROT_READ | PROT_WRITE,
Andreas Gampe6e897762018-10-16 13:09:32 -0700258 /*low_4gb=*/ false,
Vladimir Markoc34bebf2018-08-16 16:12:49 +0100259 &error);
260 if (UNLIKELY(dex_data_mmap_.IsValid() && temp_mmap_.IsValid())) {
Alex Lightca97ada2018-02-02 09:25:31 -0800261 // Need to save the initial dexfile so we don't need to search for it in the fault-handler.
262 initial_dex_file_unquickened_ = quick_dex;
Vladimir Markoc34bebf2018-08-16 16:12:49 +0100263 dex_data_ = art::ArrayRef<const unsigned char>(dex_data_mmap_.Begin(),
264 dex_data_mmap_.Size());
Alex Lightca97ada2018-02-02 09:25:31 -0800265 if (from_class_ext_) {
266 // We got initial from class_ext so the current one must have undergone redefinition so no
267 // cdex or quickening stuff.
268 // We can only do this if it's not a first load.
269 DCHECK(klass_ != nullptr);
270 const art::DexFile& cur_dex = self->DecodeJObject(klass_)->AsClass()->GetDexFile();
271 current_dex_file_ = art::ArrayRef<const unsigned char>(cur_dex.Begin(), cur_dex.Size());
272 } else {
273 // This class hasn't been redefined before. The dequickened current data is the same as the
274 // dex_data_mmap_ when it's filled it. We don't need to copy anything because the mmap will
275 // not be cleared until after everything is done.
Vladimir Markoc34bebf2018-08-16 16:12:49 +0100276 current_dex_file_ = art::ArrayRef<const unsigned char>(dex_data_mmap_.Begin(),
Alex Lightca97ada2018-02-02 09:25:31 -0800277 dequick_size);
278 }
279 return;
280 }
281 }
Vladimir Markoc34bebf2018-08-16 16:12:49 +0100282 dex_data_mmap_.Reset();
283 temp_mmap_.Reset();
Alex Lightca97ada2018-02-02 09:25:31 -0800284 // Failed to mmap a large enough area (or on-demand dequickening was disabled). This is
285 // unfortunate. Since currently the size is just a guess though we might as well try to do it
286 // manually.
Alex Light64e4c142018-01-30 13:46:37 -0800287 get_original(/*out*/&dex_data_memory_);
288 dex_data_ = art::ArrayRef<const unsigned char>(dex_data_memory_);
289 if (from_class_ext_) {
290 // We got initial from class_ext so the current one must have undergone redefinition so no
291 // cdex or quickening stuff.
292 // We can only do this if it's not a first load.
293 DCHECK(klass_ != nullptr);
294 const art::DexFile& cur_dex = self->DecodeJObject(klass_)->AsClass()->GetDexFile();
295 current_dex_file_ = art::ArrayRef<const unsigned char>(cur_dex.Begin(), cur_dex.Size());
296 } else {
297 // No redefinition must have ever happened so the (dequickened) cur_dex is the same as the
298 // initial dex_data. We need to copy it into another buffer to keep it around if we have a
299 // real redefinition.
300 current_dex_memory_.resize(dex_data_.size());
301 memcpy(current_dex_memory_.data(), dex_data_.data(), current_dex_memory_.size());
302 current_dex_file_ = art::ArrayRef<const unsigned char>(current_dex_memory_);
303 }
304}
305
306jvmtiError ArtClassDefinition::Init(art::Thread* self, jclass klass) {
307 jvmtiError res = InitCommon(self, klass);
Alex Lightb7354d52017-03-30 15:17:01 -0700308 if (res != OK) {
309 return res;
310 }
Alex Lightb7354d52017-03-30 15:17:01 -0700311 art::ScopedObjectAccess soa(self);
312 art::StackHandleScope<1> hs(self);
313 art::Handle<art::mirror::Class> m_klass(hs.NewHandle(self->DecodeJObject(klass)->AsClass()));
Alex Light64e4c142018-01-30 13:46:37 -0800314 if (!DexNeedsDequickening(m_klass, &from_class_ext_)) {
315 // We don't need to do any dequickening. We want to copy the data just so we don't need to deal
316 // with the GC moving it around.
317 art::ObjPtr<art::mirror::ByteArray> orig_dex(
318 m_klass->GetExtData()->GetOriginalDexFile()->AsByteArray());
319 dex_data_memory_.resize(orig_dex->GetLength());
320 memcpy(dex_data_memory_.data(), orig_dex->GetData(), dex_data_memory_.size());
321 dex_data_ = art::ArrayRef<const unsigned char>(dex_data_memory_);
322
323 // Since we are here we must not have any quickened instructions since we were redefined.
324 const art::DexFile& cur_dex = m_klass->GetDexFile();
325 DCHECK(from_class_ext_);
326 current_dex_file_ = art::ArrayRef<const unsigned char>(cur_dex.Begin(), cur_dex.Size());
327 return OK;
Alex Lightb7354d52017-03-30 15:17:01 -0700328 }
Alex Light64e4c142018-01-30 13:46:37 -0800329
330 // We need to dequicken stuff. This is often super slow (10's of ms). Instead we will do it
331 // dynamically.
332 const art::DexFile* quick_dex = GetQuickenedDexFile(m_klass);
333 auto get_original = [&](/*out*/std::vector<unsigned char>* dex_data)
334 REQUIRES_SHARED(art::Locks::mutator_lock_) {
Nicolas Geoffray16fc4742019-01-30 16:53:24 +0000335 GetDexDataForRetransformation(m_klass, dex_data);
Alex Light64e4c142018-01-30 13:46:37 -0800336 };
337 InitWithDex(get_original, quick_dex);
338 return OK;
Alex Lightb7354d52017-03-30 15:17:01 -0700339}
340
Alex Light64e4c142018-01-30 13:46:37 -0800341jvmtiError ArtClassDefinition::Init(art::Thread* self, const jvmtiClassDefinition& def) {
342 jvmtiError res = InitCommon(self, def.klass);
Alex Lightb7354d52017-03-30 15:17:01 -0700343 if (res != OK) {
344 return res;
345 }
Alex Light64e4c142018-01-30 13:46:37 -0800346 // We are being directly redefined.
Alex Lightb7354d52017-03-30 15:17:01 -0700347 redefined_ = true;
Alex Light64e4c142018-01-30 13:46:37 -0800348 current_dex_file_ = art::ArrayRef<const unsigned char>(def.class_bytes, def.class_byte_count);
349 dex_data_ = art::ArrayRef<const unsigned char>(def.class_bytes, def.class_byte_count);
350 return OK;
351}
352
353void ArtClassDefinition::InitFirstLoad(const char* descriptor,
354 art::Handle<art::mirror::ClassLoader> klass_loader,
355 const art::DexFile& dex_file) {
356 art::Thread* self = art::Thread::Current();
357 art::ScopedObjectAccess soa(self);
358 initialized_ = true;
359 // No Class
360 klass_ = nullptr;
361 loader_ = soa.AddLocalReference<jobject>(klass_loader.Get());
362 std::string descriptor_str(descriptor);
363 name_ = descriptor_str.substr(1, descriptor_str.size() - 2);
364 // Android doesn't really have protection domains.
365 protection_domain_ = nullptr;
366 auto get_original = [&](/*out*/std::vector<unsigned char>* dex_data)
367 REQUIRES_SHARED(art::Locks::mutator_lock_) {
Nicolas Geoffray16fc4742019-01-30 16:53:24 +0000368 DequickenDexFile(&dex_file, descriptor, dex_data);
Alex Light64e4c142018-01-30 13:46:37 -0800369 };
370 InitWithDex(get_original, &dex_file);
Alex Lighta7e38d82017-01-19 14:57:28 -0800371}
372
373} // namespace openjdkjvmti