summaryrefslogtreecommitdiff
path: root/dbg_mlc.c
diff options
context:
space:
mode:
authorhboehm <hboehm>2006-05-03 02:37:20 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:37 +0200
commit062b02eb5e9d94b3a754dd47b9bb0aa263ce64bc (patch)
tree6948eaad4dfd5b4098fc0fc24954926ab4beedbb /dbg_mlc.c
parenta12588933e413d3f196c77e869b182797b47bacc (diff)
2006-05-02 Hans Boehm <Hans.Boehm@hp.com>
* include/private/gc_locks.h: Add I_DONT_HOLD_LOCK. * dbg_mlc.c: Use I_DONT_HOLD_LOCK instead of !I_HOLD_LOCK. * thread_local_alloc: Reference ERROR_FL only when defined. * os_dep.c: comment out unused and incorrect syscall wrapper code.
Diffstat (limited to 'dbg_mlc.c')
-rw-r--r--dbg_mlc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dbg_mlc.c b/dbg_mlc.c
index bffa933..d489abf 100644
--- a/dbg_mlc.c
+++ b/dbg_mlc.c
@@ -381,7 +381,7 @@ ptr_t p;
{
register oh * ohdr = (oh *)GC_base(p);
- GC_ASSERT(!I_HOLD_LOCK());
+ GC_ASSERT(I_DONT_HOLD_LOCK());
GC_err_printf("%p (", ((ptr_t)ohdr + sizeof(oh)));
GC_err_puts(ohdr -> oh_string);
# ifdef SHORT_DBG_HDRS
@@ -397,7 +397,7 @@ ptr_t p;
void GC_debug_print_heap_obj_proc(ptr_t p)
{
- GC_ASSERT(!I_HOLD_LOCK());
+ GC_ASSERT(I_DONT_HOLD_LOCK());
if (GC_HAS_DEBUG_INFO(p)) {
GC_print_obj(p);
} else {
@@ -410,7 +410,7 @@ void GC_print_smashed_obj(ptr_t p, ptr_t clobbered_addr)
{
register oh * ohdr = (oh *)GC_base(p);
- GC_ASSERT(!I_HOLD_LOCK());
+ GC_ASSERT(I_DONT_HOLD_LOCK());
GC_err_printf("%p in object at %p(", clobbered_addr, p);
if (clobbered_addr <= (ptr_t)(&(ohdr -> oh_sz))
|| ohdr -> oh_string == 0) {
@@ -844,7 +844,7 @@ void GC_print_all_smashed_proc(void)
{
unsigned i;
- GC_ASSERT(!I_HOLD_LOCK());
+ GC_ASSERT(I_DONT_HOLD_LOCK());
if (GC_n_smashed == 0) return;
GC_err_printf("GC_check_heap_block: found smashed heap objects:\n");
for (i = 0; i < GC_n_smashed; ++i) {