diff options
| author | 2016-01-18 14:15:10 +0000 | |
|---|---|---|
| committer | 2016-01-18 14:15:10 +0000 | |
| commit | 697cc25fadc4fb2bb233a285853f7d415ed75214 (patch) | |
| tree | f3bd48614e6f31db7369e71be9272a3167e973c7 /runtime/class_linker.cc | |
| parent | c9bc77b32da061bdcc1c62330d2422f92cc5c88e (diff) | |
| parent | 160e6df5debaf77223eebddb8a4e3f7c5e729ad0 (diff) | |
Merge "Report loaded classes to native debugger."
Diffstat (limited to 'runtime/class_linker.cc')
| -rw-r--r-- | runtime/class_linker.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index ddd285a4db..ed833c4335 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -1880,6 +1880,9 @@ mirror::Class* ClassLinker::DefineClass(Thread* self, */ Dbg::PostClassPrepare(h_new_class.Get()); + // Notify native debugger of the new class and its layout. + jit::Jit::NewTypeLoadedIfUsingJit(h_new_class.Get()); + return h_new_class.Get(); } @@ -2766,6 +2769,7 @@ mirror::Class* ClassLinker::CreateArrayClass(Thread* self, const char* descripto mirror::Class* existing = InsertClass(descriptor, new_class.Get(), hash); if (existing == nullptr) { + jit::Jit::NewTypeLoadedIfUsingJit(new_class.Get()); return new_class.Get(); } // Another thread must have loaded the class after we |