Sun VM 与 IBM VM 的 -Xcheck:jni:alwayscopy 的等效选项是什么?
Sun VM 与 IBM VM 的 -Xcheck:jni:alwayscopy 等效的选项是什么?
what is Sun VM's equivalent option to IBM VM's -Xcheck:jni:alwayscopy ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您在 IBM JVM 中有该选项的参考吗?我可以看到 -Xcheck:jni 本身的描述,但整个互联网上对“-Xcheck:jni:alwayscopy”的唯一引用是您的这篇文章。是否有关于它的任何文档,如果没有,您希望 Sun JVM 复制它做什么?
无论如何,按照此 Sun JVM 选项列表 ,从 1.3.1 开始,您已经能够传递
-Xcheck:jni
标志,以便对 JNI 函数执行附加检查。这与 IBM VM 中的相同标志实现了相同的效果。您确定参数的
alwayscopy
部分确实受到 IBM JVM 的尊重,而不是像您键入-Xcheck:jni
一样默默地忽略吗?Do you have a reference to that option in the IBM JVM? I can see a description of -Xcheck:jni on its own, but the only reference on the entire internet to "-Xcheck:jni:alwayscopy" is this post of yours. Are there any documents on it, and failing that, what does it do that you'd like the Sun JVM to replicate?
In any case, as per this list of Sun JVM options, you've been able to pass the
-Xcheck:jni
flag, in order to perform additional checks on JNI functions, since 1.3.1. This achieves the same thing as the same flag in IBM's VM.Are you sure that the
alwayscopy
part of the argument is actually being honoured by the IBM JVM, and not just silently ignored to act as if you typed-Xcheck:jni
?我不确定是否有 IBM“
check:jni:
alwayscopy
”选项。IBM Developer Kit and Runtime Environment Java 2 Technology Edition Version 1.4.2 确实提到了:
“
-Xcheck:jni
" 选项会导致在要激活的实际 JNI 函数。但它和选项check很相似:jni JRE1.3中引入的1.3(另请参阅JNI 设计,以及JNI 提示)
(尽管 JRE1.6 可能还需要“
-XX:+RestoreMXCSROnJNICalls
”选项 在一定条件下)I am not sure if there is a IBM "
check:jni:
alwayscopy
" option.The IBM Developer Kit and Runtime Environment, Java 2 Technology Edition, Version 1.4.2, does mention a:
"
-Xcheck:jni
" option which causes a set of wrappers around the actual JNI functions to be activated.But it is quite similar to the option check:jni introduced in the JRE1.3 and 1.3 (see also JNI design, and JNI tips)
(although the JRE1.6 might also require the "
-XX:+RestoreMXCSROnJNICalls
" option in certain condition)