Revision: 4841
http://sourceforge.net/p/vexi/code/4841
Author: mkpg2
Date: 2016-01-09 07:31:17 +0000 (Sat, 09 Jan 2016)
Log Message:
-----------
Undocumented api for setting maxstacksize. May be useful as temporary
workaround to increase value when stack overflows occur due to bad design
(usually repeatedly placed traps).
Modified Paths:
--------------
branches/vexi3/org.vexi-core.main/src/main/jpp/org/vexi/core/Vexi.jpp
branches/vexi3/org.vexi-library.js/src/main/java/org/ibex/js/Interpreter.java
trunk/org.vexi-build.shared/meta/module.revisions
Modified: branches/vexi3/org.vexi-core.main/src/main/jpp/org/vexi/core/Vexi.jpp
===================================================================
--- branches/vexi3/org.vexi-core.main/src/main/jpp/org/vexi/core/Vexi.jpp
2016-01-07 15:18:23 UTC (rev 4840)
+++ branches/vexi3/org.vexi-core.main/src/main/jpp/org/vexi/core/Vexi.jpp
2016-01-09 07:31:17 UTC (rev 4841)
@@ -635,6 +635,8 @@
case "undocumented.initialTemplate": return
JSU.S(Main.initialTemplate);
/* @skip @nofollow */
case "undocumented.systemfonts": return Platform.systemfonts;
+ /* @skip @nofollow */
+ case "undocumented.maxstacksize": return
JSU.N(Interpreter.MAX_STACK_SIZE);
/* @nofollow */
case "devl":
@@ -698,6 +700,10 @@
case "ui.clipboard": Platform.setClipBoard(JSU.toString(value));
return;
case "ui.frame": Surface.createSurface((Box)value, true); return;
case "ui.window": Surface.createSurface((Box)value, false); return;
+ case "undocumented.maxstacksize":
+ Interpreter.MAX_STACK_SIZE = JSU.toInt32(value);
+ return;
+
//#end
throw new JSExn("attempted to put unknown property: vexi."+name);
}
Modified:
branches/vexi3/org.vexi-library.js/src/main/java/org/ibex/js/Interpreter.java
===================================================================
---
branches/vexi3/org.vexi-library.js/src/main/java/org/ibex/js/Interpreter.java
2016-01-07 15:18:23 UTC (rev 4840)
+++
branches/vexi3/org.vexi-library.js/src/main/java/org/ibex/js/Interpreter.java
2016-01-09 07:31:17 UTC (rev 4841)
@@ -73,7 +73,8 @@
* */
/** Encapsulates a single JS interpreter (ie call stack) */
public class Interpreter implements ByteCodes, Tokens, Constants {
-
+ static public int MAX_STACK_SIZE = 512;
+
// FIXME - use Thread.cascadedTo==NULL instead
public final static JSNumber CASCADE_PREVENTED = new JSNumber.I(1);
@@ -856,7 +857,6 @@
}
final class Stack {
- private static final int MAX_STACK_SIZE = 512;
private Object[] stack = new Object[8];
private int sp = 0;
Modified: trunk/org.vexi-build.shared/meta/module.revisions
===================================================================
--- trunk/org.vexi-build.shared/meta/module.revisions 2016-01-07 15:18:23 UTC
(rev 4840)
+++ trunk/org.vexi-build.shared/meta/module.revisions 2016-01-09 07:31:17 UTC
(rev 4841)
@@ -1 +1 @@
-{"https:\/\/ebuild-project.org\/svn\/ebuild\/plugins":"175","https:\/\/emanate-project.org\/svn\/eapi":"223"}
\ No newline at end of file
+{"https:\/\/ebuild-project.org\/svn\/ebuild\/plugins":"180","https:\/\/emanate-project.org\/svn\/eapi":"223"}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn