[sgen] Remove stupid typedef.
authorMark Probst <mark.probst@gmail.com>
Tue, 29 Mar 2016 22:21:23 +0000 (15:21 -0700)
committerMark Probst <mark.probst@gmail.com>
Mon, 25 Jul 2016 18:06:55 +0000 (11:06 -0700)
mono/sgen/sgen-gc.c

index f29b15d6368208075b12363b09007fbb9a7aa634..adfef93020d80def65e9bc4a0d112bbf75e081d3 100644 (file)
@@ -399,9 +399,6 @@ static mword objects_pinned;
  * ######################################################################
  */
 
-/* FIXME: get rid of this */
-typedef SgenGrayQueue GrayQueue;
-
 /* forward declarations */
 static void scan_from_registered_roots (char *addr_start, char *addr_end, int root_type, ScanCopyContext ctx);
 
@@ -516,7 +513,7 @@ gboolean
 sgen_drain_gray_stack (ScanCopyContext ctx)
 {
        ScanObjectFunc scan_func = ctx.ops->scan_object;
-       GrayQueue *queue = ctx.queue;
+       SgenGrayQueue *queue = ctx.queue;
 
        if (ctx.ops->drain_gray_stack)
                return ctx.ops->drain_gray_stack (queue);
@@ -713,7 +710,7 @@ pin_objects_in_nursery (gboolean do_scan_objects, ScanCopyContext ctx)
  * when we can't promote an object because we're out of memory.
  */
 void
-sgen_pin_object (GCObject *object, GrayQueue *queue)
+sgen_pin_object (GCObject *object, SgenGrayQueue *queue)
 {
        SGEN_ASSERT (0, sgen_ptr_in_nursery (object), "We're only supposed to use this for pinning nursery objects when out of memory.");