Give the minor copy functions different names under for each minor collector to make...
authorRodrigo Kumpera <kumpera@gmail.com>
Mon, 13 Aug 2012 23:07:33 +0000 (20:07 -0300)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 14 Aug 2012 17:06:54 +0000 (14:06 -0300)
mono/metadata/sgen-copy-object.h

index 2838dfb5b53b3e304d19f32dfb3f5df47b241da6..7b7aea398b3967702bf4d9571a5fe3ceaf7d017a 100644 (file)
@@ -111,6 +111,19 @@ copy_object_no_checks (void *obj, SgenGrayQueue *queue)
 
 extern long long stat_nursery_copy_object_failed_to_space; /* from sgen-gc.c */
 
+#if defined(SGEN_SIMPLE_NURSERY)
+#define serial_copy_object simple_nursery_serial_copy_object
+#define parallel_copy_object simple_nursery_parallel_copy_object
+
+#elif defined (SGEN_SPLIT_NURSERY)
+
+#define serial_copy_object split_nursery_serial_copy_object
+#define parallel_copy_object split_nursery_parallel_copy_object
+
+#else
+#error "Please define GC_CONF_NAME"
+#endif
+
 /*
  * This is how the copying happens from the nursery to the old generation.
  * We assume that at this time all the pinned objects have been identified and