[sgen] Remove dead code.
authorMark Probst <mark.probst@gmail.com>
Thu, 5 Feb 2015 21:11:50 +0000 (13:11 -0800)
committerMark Probst <mark.probst@gmail.com>
Mon, 23 Mar 2015 22:34:05 +0000 (15:34 -0700)
mono/metadata/sgen-gc.c
mono/metadata/sgen-gc.h

index fc442d4f5ad4da284c2ad881c297657f7dd03a86..160557aee0d1308786003419a422eb2ddf245002 100644 (file)
@@ -1109,36 +1109,6 @@ sgen_pin_object (void *object, GrayQueue *queue)
 #endif
 }
 
-void
-sgen_parallel_pin_or_update (void **ptr, void *obj, MonoVTable *vt, SgenGrayQueue *queue)
-{
-       for (;;) {
-               mword vtable_word;
-               gboolean major_pinned = FALSE;
-
-               if (sgen_ptr_in_nursery (obj)) {
-                       if (SGEN_CAS_PTR (obj, SGEN_POINTER_TAG_PINNED (vt), vt) == vt) {
-                               sgen_pin_object (obj, queue);
-                               break;
-                       }
-               } else {
-                       major_collector.pin_major_object (obj, queue);
-                       major_pinned = TRUE;
-               }
-
-               vtable_word = *(mword*)obj;
-               /*someone else forwarded it, update the pointer and bail out*/
-               if (SGEN_POINTER_IS_TAGGED_FORWARDED (vtable_word)) {
-                       *ptr = SGEN_POINTER_UNTAG_VTABLE (vtable_word);
-                       break;
-               }
-
-               /*someone pinned it, nothing to do.*/
-               if (SGEN_POINTER_IS_TAGGED_PINNED (vtable_word) || major_pinned)
-                       break;
-       }
-}
-
 /* Sort the addresses in array in increasing order.
  * Done using a by-the book heap sort. Which has decent and stable performance, is pretty cache efficient.
  */
index d7147377deed372765f12b7e3b1e72354572aebf..d3e7151819efa03c094e549a8d25cd2daa2996d8 100644 (file)
@@ -949,7 +949,6 @@ enum {
 };
 
 void sgen_pin_object (void *object, SgenGrayQueue *queue);
-void sgen_parallel_pin_or_update (void **ptr, void *obj, MonoVTable *vt, SgenGrayQueue *queue);
 void sgen_set_pinned_from_failed_allocation (mword objsize);
 
 void sgen_ensure_free_space (size_t size);