我想通過使用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