pike.git/
src/
gc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2004-09-30
2004-09-30 12:12:10 by Martin Stjernholm <mast@lysator.liu.se>
28a967de75ebd97d44a78b6af4a83183222bd004 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Use sub_ref in some places to play nice with dmalloc.
Rev: src/gc.c:1.261
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: gc.c,v 1.
260
2004/09/
28
16
:
56
:
00
mast Exp $
+
|| $Id: gc.c,v 1.
261
2004/09/
30
12
:
12
:
10
mast Exp $
*/ #include "global.h"
2438:
/* A thing previously popped as dead is now being marked live. * Have to remove the extra ref added by gc_cycle_pop(). */ gc_free_extra_ref(x);
-
if (!
--*
(
INT32
*) x) {
+
if (!
sub_ref
(
(struct
ref_dummy
*) x)
)
{
#ifdef PIKE_DEBUG gc_fatal(x, 0, "Thing got zero refs after removing the dead gc ref.\n"); #endif
2605:
return 1; else { gc_free_extra_ref (a);
-
--*
(
INT32
*) a;
+
sub_ref
(
(struct
ref_dummy
*) a
)
;
} } return 0;