Fixes PR121. Cherry-picked from upstream BoehmGC CVS head.
authorMichael Starzinger <michi@complang.tuwien.ac.at>
Sat, 21 Mar 2009 16:00:53 +0000 (17:00 +0100)
committerMichael Starzinger <michi@complang.tuwien.ac.at>
Sat, 21 Mar 2009 16:00:53 +0000 (17:00 +0100)
* src/mm/boehm-gc/os_dep.c (GC_linux_stack_base): Relax sanity test.

src/mm/boehm-gc/os_dep.c

index 5aa41f3e7186e44fab9e249b976c1a5dbc4c5852..321aba94bbfdd910039fb12122d858a58d037593 100644 (file)
@@ -1077,7 +1077,7 @@ ptr_t GC_get_main_stack_base(void)
       c = stat_buf[buf_offset++];
     }
     close(f);
-    if (result < 0x10000000) ABORT("Absurd stack bottom value");
+    if (result < 0x100000) ABORT("Absurd stack bottom value");
     return (ptr_t)result;
   }