[svn] r5874: nemerle/trunk/ncc/main.n
malekith
svnadmin at nemerle.org
Wed Nov 2 23:26:57 CET 2005
Log:
Try to workaround StackOverflow on x64.
Author: malekith
Date: Wed Nov 2 23:26:56 2005
New Revision: 5874
Modified:
nemerle/trunk/ncc/main.n
Modified: nemerle/trunk/ncc/main.n
==============================================================================
--- nemerle/trunk/ncc/main.n (original)
+++ nemerle/trunk/ncc/main.n Wed Nov 2 23:26:56 2005
@@ -52,10 +52,21 @@
{
module MainClass
{
+ needs_bigger_stack () : bool
+ {
+ IntPtr.Size > 4 &&
+ typeof (object).Assembly.GetType ("System.RuntimeType") != null
+ }
+
public Main () : void
{
Message.InitOutput (System.Console.Out);
try {
+ if (needs_bigger_stack ()) {
+ def thread = System.Threading.Thread (do_main, 0x200000);
+ thread.Start ();
+ thread.Join ();
+ } else
do_main ()
} catch {
| e is System.IO.FileNotFoundException =>
More information about the svn
mailing list