Zentopia
Zentopia

Reputation: 795

Where is the current instruction address stored in JVM, if the method currently being executed by the thread is native?

If that method is not native, the pc register contains the address of the Java Virtual Machine instruction currently being executed. If the method currently being executed by the thread is native, the value of the Java Virtual Machine's pc register is undefined. -- from “The Java ® Virtual Machine Specification”

Is the current instruction stored in the pc register of CPU? And what kind of instruction set does native method execute?

Upvotes: 1

Views: 316

Answers (0)

Related Questions