Merge pull request #3083 from alexrp/gc-pointless-memory-barrier
[mono.git] / mono / sgen / sgen-alloc.c
index 0c824caa9eb7a0c4871dfb1151e4c3f46e29b774..dcf977c06e1b736e4f46ad3ec4ea9a0d760eb2af 100644 (file)
@@ -200,11 +200,6 @@ sgen_alloc_obj_nolock (GCVTable vtable, size_t size)
                if (G_LIKELY (new_next < TLAB_TEMP_END)) {
                        /* Fast path */
 
-                       /* 
-                        * FIXME: We might need a memory barrier here so the change to tlab_next is 
-                        * visible before the vtable store.
-                        */
-
                        CANARIFY_ALLOC(p,real_size);
                        SGEN_LOG (6, "Allocated object %p, vtable: %p (%s), size: %zd", p, vtable, sgen_client_vtable_get_name (vtable), size);
                        binary_protocol_alloc (p , vtable, size, sgen_client_get_provenance ());