What is the Sun VM equivalent for IBM VM -Xcheck: jni: alwayscopy?

What is the Sun VM equivalent for IBM VM -Xcheck: jni: alwayscopy?

+2


source to share


2 answers


Do you have a link to this setting in the IBM JVM? I can describe the description of -Xcheck: jni myself, but the only link to the whole internet is at "-Xcheck: jni: alwayscopy" This is your post. Does it have any documents on it, and if not, what does it do to get you to want the Sun JVM to replicate?

In any case, according to this Sun JVM parameter list , you can pass a flag -Xcheck:jni

in to perform additional checks on JNI functions since 1.3.1. This provides the same as the same flag in the IBM VM.



Are you sure that part of the argument is alwayscopy

actually honored by the IBM JVM and not just silently ignored like you typed -Xcheck:jni

?

+3


source


I'm not sure if there is an IBM option " check:jni:

alwayscopy

".
The IBM Developer Kit and Runtime Environment, Java 2 Technology Edition, version 1.4.2 mentions:

" " which causes a set of wrappers around the actual JNI functions to be activated. -Xcheck:jni

But this is very similar to checking options: jni introduced in JRE1.3 and 1.3 (see also JNI design and JNI Tips )



java -classic -cp . -Xcheck:jni Max

      

(although JRE1.6 may also require a <option-XX:+RestoreMXCSROnJNICalls

under certain conditions)

+1


source







All Articles