pike.git/
src/
gc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2010-04-19
2010-04-19 13:51:48 by Martin Stjernholm <mast@lysator.liu.se>
774a53108fe310bd9825d740060d51e51c8ee28e (
11
lines) (+
9
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed an assert to work in GC_MARK_DEBUG mode.
Rev: src/gc.c:1.345
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.
344
2010/04/
16
00
:
15
:
17
mast Exp $
+
|| $Id: gc.c,v 1.
345
2010/04/
19
13
:
51
:
48
mast Exp $
*/ #include "global.h"
3557:
* follow the same reference several times, e.g. with shared mapping * data blocks. */ ACCEPT_UNFINISHED_TYPE_FIELDS {
-
assert (!gc_mark_
queue.
first);
/*
Should
be
empty.
*/
+
/* The queue should be empty here. */
+
#ifdef GC_MARK_DEBUG
+
assert (!gc_mark_first);
+
#else
+
assert (!gc_mark_queue
.
first);
+
#endif
+
gc_mark_all_arrays(); gc_mark_run_queue(); gc_mark_all_multisets();