* malloc.c: (free replacement) Fix caller address space check.
+2008-02-28 Hans Boehm <Hans.Boehm@hp.com>
+
+ * malloc.c: (free replacement) Fix caller address space check.
+
2008-02-25 Hans Boehm <Hans.Boehm@hp.com>
* finalize.c (GC_grow_table): Dereference table in null-check.
ptr_t caller = (ptr_t)__builtin_return_address(0);
/* This test does not need to ensure memory visibility, since */
/* the bounds will be set when/if we create another thread. */
- if (caller >= GC_libpthread_start && caller > GC_libpthread_end) {
+ if (caller >= GC_libpthread_start && caller < GC_libpthread_end
+ || (caller >= GC_libld_start && caller < GC_libld_end)) {
GC_free(p);
return;
}