diff options
author | hboehm <hboehm> | 2008-02-29 20:06:36 +0000 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2011-07-26 21:06:42 +0400 |
commit | 8a3f5b962695e29451e96265f1c2bd572d992f16 (patch) | |
tree | 912a8e3ac83c42a1976f62c991cb6895346efcb6 | |
parent | 4e29beee3c60a7cff48c8de73bfe4fb864d2bb7c (diff) | |
download | bdwgc-8a3f5b962695e29451e96265f1c2bd572d992f16.tar.gz |
2008-02-29 Hans Boehm <Hans.Boehm@hp.com>
* pthread_support.c: Fix typo in comment.
* os_dep.c (GC_win32_get_mem): Add heap section only if
allocation succeeded.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | os_dep.c | 2 | ||||
-rw-r--r-- | pthread_support.c | 2 |
3 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2008-02-29 Hans Boehm <Hans.Boehm@hp.com> + + * pthread_support.c: Fix typo in comment. + * os_dep.c (GC_win32_get_mem): Add heap section only if + allocation succeeded. + 2008-02-28 Hans Boehm <Hans.Boehm@hp.com> * malloc.c: (free replacement) Fix caller address space check. @@ -1953,7 +1953,7 @@ ptr_t GC_win32_get_mem(word bytes) /* If I read the documentation correctly, this can */ /* only happen if HBLKSIZE > 64k or not a power of 2. */ if (GC_n_heap_bases >= MAX_HEAP_SECTS) ABORT("Too many heap sections"); - GC_heap_bases[GC_n_heap_bases++] = result; + if (0 != result) GC_heap_bases[GC_n_heap_bases++] = result; return(result); } diff --git a/pthread_support.c b/pthread_support.c index b028be7f..8ca1a3a6 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -153,7 +153,7 @@ unsigned long GC_lock_holder = NO_THREAD; #if defined(GC_USE_DL_WRAP) || defined(GC_USE_DLOPEN_WRAP) /* Define GC_ functions as aliases for the plain ones, which will */ /* be intercepted. This allows files which include gc.h, and hence */ -/* generate referemces to the GC_ symbols, to see the right symbols. */ +/* generate references to the GC_ symbols, to see the right symbols. */ int GC_pthread_create(pthread_t * t, const pthread_attr_t * a, void * (* fn)(void *), void * arg) { return pthread_create(t, a, fn, arg); |