Re: Stack size control similar to Java's -Xss
Jeroen Frijters <[email protected]> Fri, 29 Apr 2016 07:25:49 +0000
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Nigel, Editbin works, but you have to modify the main EXE of the process. There is no IKVM specific way to control the stack, it's just the normal Windows stack. If the Java code explicitly passes the stack size to the java.lang.Thread constructor, that is passed on to the .NET Thread constructor. Regards, Jeroen > -----Original Message----- > From: Nigel Whitaker [mailto:[email protected]] > Sent: Tuesday, April 26, 2016 18:24 > To: [email protected] > Subject: [Ikvm-developers] Stack size control similar to Java's -Xss > > Hello, > > We have some code (and data) that is expensive in terms of recursion > (500+ stack frames). > > In Java we can use -Xss600k and it will run, but we get a > StackOverflowError with the default JVM stacksize. > > > With an ikvmc generated .exe we also get a System.StackOverflowException > which isn’t unexpected. > > I’ve experimented with editbin.exe /stack but it doesn’t seem to have an > effect and we’re still getting the exception with 10MB stack sizes for > example. (I could be using the wrong one - there’s several in visual > studio!). > > Is there any ikvm specific control of stack-size that I’ve missed in the > documentation or any suggestions in this area? > > (Longer term we’ll rewrite the Java code to be less recursive). > > Many thanks, > > Nigel > > — > Nigel Whitaker - DeltaXML Ltd - [email protected] > > > > > > > ------------------------------------------------------------------------ > ------ > Find and fix application performance issues faster with Applications > Manager > Applications Manager provides deep performance insights into multiple > tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > Ikvm-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ikvm-developers ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Ikvm-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ikvm-developers