summaryrefslogtreecommitdiff
path: root/alloc.c
diff options
context:
space:
mode:
authorivmai <ivmai>2010-03-26 07:22:57 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 21:06:53 +0400
commite9374e1f28307eb693d429b9c141df11580a9a1a (patch)
tree06d2de8c818765f80db2f7a2b3f2867512c1eea4 /alloc.c
parent9c4172ecaa580948bf6414fc7b5c823aeb5d0423 (diff)
downloadbdwgc-e9374e1f28307eb693d429b9c141df11580a9a1a.tar.gz
2010-03-26 Ivan Maidanski <ivmai@mail.ru> (really Hans Boehm)
* alloc.c (GC_maybe_gc): Move GC_notify_full_gc() call upper to be just before GC_clear_marks() call. * include/gc_mark.h (GC_start_callback_proc): Refine the comment.
Diffstat (limited to 'alloc.c')
-rw-r--r--alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/alloc.c b/alloc.c
index 78011a46..1b26d43d 100644
--- a/alloc.c
+++ b/alloc.c
@@ -369,9 +369,9 @@ STATIC void GC_maybe_gc(void)
}
GC_promote_black_lists();
(void)GC_reclaim_all((GC_stop_func)0, TRUE);
+ GC_notify_full_gc();
GC_clear_marks();
n_partial_gcs = 0;
- GC_notify_full_gc();
GC_is_full_gc = TRUE;
} else {
n_partial_gcs++;