Android stack size

老子叫甜甜 提交于 2019-12-06 04:04:38

问题


How can i get and change the stack size (even for the main thread) of my Android application.


回答1:


AFAIK -Xss can be used as a command line to change the main threads stacks size, if not using the command line the app framework will use the default size. In this case if you need more stack you will need to start a thread (using this ctor) to do the work.




回答2:


The main thread stack size is set in the firmware and cannot be modified, short of modifying the firmware for your own phone. As Mr. Strong indicates, for threads you fork, you can set your own stack size.



来源:https://stackoverflow.com/questions/1859327/android-stack-size

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!