我想通过使用eclipse调试它来了解hadoop源代码。 而我调试它,我遇到)命名START0(本机的功能在这里:使用它蚀“或使用任何外部工具”,或者至少我可以读此功能的源代码
http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b27/java/lang/Thread.java#Thread.start0%28%29如何在hadoop源代码中调试本机函数?
我可以调试?
Hadoop是一个开源的,所以它应该可以访问和读取其中所有函数的代码,但我不知道如何。
Note: my hadoop version : 1.2.1
编辑: 我读到的原始功能和从我读,包含本地函数的类应该包含这样的事情:
`// load DLL that contains static method
static {
System.loadLibrary("NativeDemo");
}`
但在Hadoop中的线程类包含此:
/* Make sure registerNatives is the first thing <clinit> does. */ 134 private static native void More ...registerNatives(); 135 static { 136 registerNatives(); 137 }
那么我怎样才能知道库的名称start0 ()函数链接到?
其中,是函数START0()在配置文件中的源代码? – Flowra
给定的链接通常用于Hadoop相关的源代码。上面提到的一点是Thread.start(),它通常会为新进程调用。所以你不会在config中找到start() – Ramzy