* alloc.c (GC_try_to_collect): Call GC_init if necessary.
* tests/thread_leak_test.c: Don't unconditionally define
GC_LINUX_THREADS.
+2007-05-21 Hans Boehm <Hans.Boehm@hp.com>
+
+ * alloc.c (GC_try_to_collect): Call GC_init if necessary.
+ * tests/thread_leak_test.c: Don't unconditionally define
+ GC_LINUX_THREADS.
+
2007-05-21 Andreas Tobler <a.tobler@schweiz.org>
* Makefile.am: Remove extra_ldflags_libgc definition.
int result;
DCL_LOCK_STATE;
+ if (!GC_is_initialized) GC_init();
if (GC_debugging_started) GC_print_all_smashed();
GC_INVOKE_FINALIZERS();
LOCK();
-#define GC_LINUX_THREADS
+#ifndef GC_THREADS
+# define GC_THREADS
+#endif /* GC_THREADS */
#include "leak_detector.h"
#include <pthread.h>
#include <stdio.h>