问题:当使用android+rhino+env.js时遇到
I/dalvikvm( 465): threadid=1: stack overflow on call to Lorg/mozilla/javascript/TokenStream;.getChar:I
I/dalvikvm( 465): method requires 36+20+8=64 bytes, fp is 0x4186933c (60 left)
解答:把stack搞大一点
Runnable r = new Runnable(){
public void run(){
//... evaluateString() function here ...
}
}
final Thread t = new Thread(new ThreadGroup("A") , r, "my thread name", 100000);
t.start();