+2008-05-23 Massimiliano Mantione <massi@ximian.com>
+ * alloc.c: Moved emitting "GC_EVENT_START" and "GC_EVENT_END" events
+ from "GC_maybe_gc" to "GC_try_to_collect_inner".
+
2008-05-19 Zoltan Varga <vargaz@gmail.com>
* configure.in: Add two variables for passing CPPFLAGS/CFLAGS from the parent
static int n_partial_gcs = 0;
if (GC_should_collect()) {
- if (GC_notify_event)
- GC_notify_event (GC_EVENT_START);
-
-
if (!GC_incremental) {
GC_gcollect_inner();
n_partial_gcs = 0;
GC_n_attempts++;
}
}
-
-
- if (GC_notify_event)
- GC_notify_event (GC_EVENT_END);
}
}
CLOCK_TYPE start_time, current_time;
# endif
if (GC_dont_gc) return FALSE;
+
+ if (GC_notify_event)
+ GC_notify_event (GC_EVENT_START);
+
if (GC_incremental && GC_collection_in_progress()) {
# ifdef CONDPRINT
if (GC_print_stats) {
MS_TIME_DIFF(current_time,start_time));
}
# endif
+ if (GC_notify_event)
+ GC_notify_event (GC_EVENT_END);
+
return(TRUE);
}