* mallocx.c (GC_malloc_atomic_uncollectable): Fix two serious
editing errors.
* os_dep.c (GC_get_stack_base): Return GC_SUCCESS from default version.
* pthread_support.c (start_mark_threads): Remove dummy version.
* libatomic_ops-1.1/src/atomic_ops/sysdeps/hpc/ia64.h: Fix typos.
Didn't compile.
* tests/thread_leak_test.c(test): Return something.
if (EXTRA_BYTES != 0 && lb != 0) lb--;
/* We don't need the extra byte, since this won't be */
/* collected anyway. */
- lg = GC_size_map[lg];
+ lg = GC_size_map[lb];
opp = &(GC_auobjfreelist[lg]);
LOCK();
if( (op = *opp) != 0 ) {
GC_ASSERT(0 == op || GC_is_marked(op));
return((void *) op);
} else {
- size_t lb;
hdr * hhdr;
op = (ptr_t)GC_generic_malloc(lb, AUNCOLLECTABLE);
# else
b -> mem_base = GC_find_limit(&dummy, FALSE);
# endif
+ return GC_SUCCESS;
# else
return GC_UNIMPLEMENTED;
# endif
}
}
-#else /* !PARALLEL_MARK */
-
-static __inline__ void start_mark_threads(void)
-{
-}
-
-#endif /* !PARALLEL_MARK */
+#endif /* PARALLEL_MARK */
GC_bool GC_thr_initialized = FALSE;
for (i = 1; i < 10; ++i) {
free(p[i]);
}
+ return 0;
}
#define NTHREADS 5