Android的堆栈大小 [英] Android stack size

查看:931
本文介绍了Android的堆栈大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能和改变我的Andr​​oid应用程序的堆栈大小(甚至是主线程)。

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

推荐答案

AFAIK -Xss可以作为一个命令行来改变主线程堆栈大小,如果不使用命令行应用程序框架将使用默认的大小。在这种情况下,如果你需要更多的堆栈,你将需要启动一个线程(使用本<一个href="http://developer.android.com/reference/java/lang/Thread.html#Thread%28java.lang.ThreadGroup,%20java.lang.Runnable,%20java.lang.String,%20long%29"相对=nofollow>男星)做的工作。

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.

这篇关于Android的堆栈大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆