// vmThread.cpp VMThread::VMThread() : NamedThread() { set_name("VM Thread"); } void VMThread::create() { _vm_thread = new VMThread(); } jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) { VMThread::create(); Thread* vmthread = VMThread::vm_thread(); os::create_thread(vmthread, os::vm_thread); os::start_thread(vmthread); }
void VMThread::run() { this->initialize_named_thread(); this->loop(); } void VMThread::loop() { while(true) { // 代码省略 } }
位置:VMThread::loop
位置:VMThread::execute
该接口调用方有137个,涉及多个垃圾回收器和其他方法。下面只列举CMS相关
There was an error while loading. Please reload this page.