It seems it's right!!
A guy from the sun said as the following:
"
I did find a few snippits here and there, These are from Troubleshooting Guide for Java SE 6 with HotSpotVM
In theHotSpot implementation, Java methods share stack frames with C/C++ native code,
namely user native code and the virtual machine itself. Java methods generate code that checks
that stack space is available a fixed distance towards the end of the stack so that the native code
can be called without exceeding the stack space. This distance towards the end of the stack is
called “Shadow Pages.” The size of the shadow pages is between 3 and 20 pages, depending on
the platform. This distance is tunable, so that applications with native code needing more than
the default distance can increase the shadow page size. The option to increase shadow pages is
-XX:StackShadowPages=n, where n is greater than the default stack shadow pages for the
platform.
If you increase the value of StackShadowPages, you might also need to increase the default
thread stack size using the -Xssparameter. Increasing the default thread stack size might
decrease the number of threads that can be created, so be careful in choosing a value for the
thread stack size. The thread stack size varies by platform from 256k to 1024k."
StackShadowPages 一般只有用到本地方法时才会去修改这个值,或则默认值已经能够满足需求,它具体指本地方法与JAVA共享栈,这个值是指在内存单元上,JAVA能够够调用本地方法的最大范围,而这个StackShadowPages 就是这个范围的最大值,一般地如果改变这个值,需要同时修改-Xss 或者-XX:ThreadStackSize= 修改线程的默认栈大小。而这个值会影响到JVM里面最
大的线程数量,所以调整需要小心。
一般情况下,在应用程序中,没有调用本地方法时,JVM的这个参数StackShadowPages没有必要修改。
http://forums.oracle.com/forums/thread.jspa?messageID=9767929&tstart=0
分享到:
相关推荐
1. What is the IP address and TCP port number used by the client computer (source) that is transferring the file to gaia.cs.umass.edu? To answer this question, it’s probably easiest to select an ...
"What Is the What"是一道在华为OJ平台上颇具挑战性的题目,其核心问题在于求解“最高分”。在这里,我们将深入探讨这个问题,并提供解题思路和策略。 首先,我们需要理解“最高分”在编程竞赛中的含义。在华为OJ...
标题 "New folder (3).zip_What Is the What_code_new folder 3" 暗示这是一个包含编程代码的压缩文件,可能是一个项目或程序的源代码。描述中的 "The code what i get is here" 提示我们这个压缩包包含了某个过程或...
"what_is_the_reseach_management.zip_What Is the What_研发团队管理_研发流程_"这个压缩包文件,以深入探讨这一主题为出发点,旨在揭示研发管理的本质及其在实际操作中的应用。 首先,研发团队管理是研发管理的...
What is the matterPPT教案学习.pptx
What is the capital of EgyptPPT教案学习.pptx
What Is Computer Science
《ChatGPT在做什么...以及为什么它有效》 这本书由斯蒂芬·沃尔夫勒姆(Stephen Wolfram)撰写,探讨了ChatGPT的工作原理及其为何能成功运作。沃尔夫勒姆是计算科学领域的权威,他的公司Wolfram Media出版了这本书...
本书详细介绍了数学的各个分支。对于有需要了解数学方法的程序员有很大的帮助。
WHAT IS A MATROID? JAMES OXLEY Abstract. Matroids were introduced by Whitney in 1935 to try to capture abstractly the essence of dependence. Whitney’s definition embraces a surprising diversity of ...
what is social media-book
what colour is the applePPT教案学习.pptx
The ideas and methods of basic research (updated version)], it won 23 consecutive interactive mathematical ... found this site only in English, is now offering the Chinese version, I hope everyone likes.
An optimization problem is almost any problem that is, or can be, formulated as a question starting with “What is the best ... ?” For instance, • What is the best route to get from home to work? •...
What Is New in MySQL 5.7之新特性篇
精心设计对话 促进深度学习——What is life读写课教学设计.pdf
Linux中的`whatis`命令和`whatis`数据库是系统管理员和开发者在寻找命令或工具简要信息时的重要工具。`whatis`数据库是一个包含了系统中所有可执行文件、命令和程序简短描述的文本文件,它使得用户可以通过关键词...
What is SSAE 16, ISAE3402
Unit 5 What Is He Like课时练习题及答案2.doc