* os_dep.c (GC_get_stack_base): Add FIXME; add assertion for
GC_get_writable_length() result.
+2009-09-19 Ivan Maidanski <ivmai@mail.ru>
+
+ * os_dep.c (GC_get_stack_base): Add FIXME; add assertion for
+ GC_get_writable_length() result.
2009-09-18 Ivan Maidanski <ivmai@mail.ru> (really Ludovic CourtXs)
int dummy;
ptr_t sp = (ptr_t)(&dummy);
ptr_t trunc_sp = (ptr_t)((word)sp & ~(GC_page_size - 1));
+ /* FIXME: This won't work if called from a deeply recursive */
+ /* client code (and the committed stack space has grown). */
word size = GC_get_writable_length(trunc_sp, 0);
-
+ GC_ASSERT(size != 0);
sb -> mem_base = trunc_sp + size;
return GC_SUCCESS;
}