史成荣 wrote: > hi, I found some methods in the classlib have no code, and found just a > "return" instruction in the corresponding .class file, for example > Java.lang.object.wait(). But when JIT compiles the bytecode of such methods, > I found the bytecode contains not only the "return" instruction. Many other > instructions are contained in the bytecode. Could anyone tell me when and > how other instructions are included in the bytecode?
Are you looking at the stubs by accident? The VM-specifc 'kernel' types are provided as compile-against stubs in jre/lib/boot/luni-kernel-stubs.jar and security-kernel-stubs.jar. The actual implementations are in VM-specific subdirectories in jre/bin, e.g. jre/bin/default/kernel.jar Regards, Tim
