My question is how the JNI takes the returned value of a native method and give it to the JVM (push into native stack).
For example if i have a native method toString
, and the JVM knows where is the code of toString method, how JNI call the method?