diff options
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r-- | runtime/class_linker.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index 3ecf59520d..694c113eb6 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -8705,6 +8705,8 @@ jobject ClassLinker::CreatePathClassLoader(Thread* self, DCHECK(h_long_array != nullptr); h_long_array->Set(kDexFileIndexStart, reinterpret_cast<intptr_t>(dex_file)); + // Note that this creates a finalizable dalvik.system.DexFile object and a corresponding + // FinalizerReference which will never get cleaned up without a started runtime. Handle<mirror::Object> h_dex_file = hs2.NewHandle( cookie_field->GetDeclaringClass()->AllocObject(self)); DCHECK(h_dex_file != nullptr); |