Closed peteryuanpan closed 4 years ago
一步步按继续(F5),如下 1、if (!LoadJavaVM(jvmpath, &ifn)) { 2、rslt = ContinueInNewThread0(JavaMain, threadStackSize, (void)&args); 3、int JNICALL JavaMain(void _args) { JavaMainArgs args = (JavaMainArgs )_args; 4、jint Threads::create_vm(JavaVMInitArgs args, bool canTryAgain) {
extern void JDK_Version_init();
// Check version if (!is_supported_jni_version(args->version)) return JNI_EVERSION; 5、然后会得到这个 关掉它,然后将 basic_add 函数中的断点取消掉,点继续(F8) 6、mainClass = LoadMainClass(env, mode, what); 7、void VMThread::execute(VM_Operation op) { Thread t = Thread::current();
if (!t->is_VM_thread()) { SkipGCALot sgcalot(t); // avoid re-entrant attempts to gc-a-lot // JavaThread or WatcherThread bool concurrent = op->evaluate_concurrently(); 8、输出 hi peter
nice
给子牙老师点赞!!
Windows上用虚拟机运行Ubuntu环境并调试JVM
本文分为几个步骤