
属于
线程私有
本地方法区和 Java Stack 作用类似, 区别是虚拟机栈为执行 Java 方法服务, 而本地方法栈则为
Native 方法服务, 如果一个 VM 实现使用 C-linkage 模型来支持 Native 调用, 那么该栈将会是一个
C 栈,但 HotSpot VM 直接就把本地方法栈和虚拟机栈合二为一
例如:Object类中的方法
native Class> getClass();native int hashCode();native Object clone() throws CloneNotSupportedException;native void notify();native void notifyAll();native void wait(long timeoutMillis) throws InterruptedException;