INNER CODE UNIT · C++

javaVMExt

tiann/epic · library/src/main/cpp/art.cpp:45

  JavaVMExt* javaVMExt = (JavaVMExt*)javaVM;

  void* runtime = javaVMExt->runtime;
  if (runtime == nullptr) {
    return;
  }

  if (api < ANDROID_R_API) {
    runtime_instance_ = runtime;
  } else {
    int vm_offset = find_offset(runtime, MAX_SEARCH_LEN, javaVM);
    runtime_instance_ = reinterpret_cast<void*>(reinterpret_cast<char*>(runtime) + vm_offset - offsetof(PartialRuntimeR, java_vm_));
  }
}

void* ArtHelper::getClassLinker()
{
  if (runtime_instance_ == nullptr || api < ANDROID_R_API) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…