src/hotspot/share/asm/assembler.cpp
changeset 47634 6a0c42c40cd1
parent 47216 71c04702a3d5
child 51633 21154cb84d2a
--- a/src/hotspot/share/asm/assembler.cpp	Mon Oct 16 20:22:41 2017 +0000
+++ b/src/hotspot/share/asm/assembler.cpp	Mon Oct 16 22:36:06 2017 -0400
@@ -236,11 +236,9 @@
     if (dcon->match(type, cfn))
       return dcon;
     if (dcon->value_fn == NULL) {
-      // (cmpxchg not because this is multi-threaded but because I'm paranoid)
-      if (Atomic::cmpxchg_ptr(CAST_FROM_FN_PTR(void*, cfn), &dcon->value_fn, NULL) == NULL) {
+        dcon->value_fn = cfn;
         dcon->type = type;
         return dcon;
-      }
     }
   }
   // If this assert is hit (in pre-integration testing!) then re-evaluate