8011972: Field can be erroneously marked as contended when @Contended annotation isn't present
authorvlivanov
Thu, 11 Apr 2013 09:08:15 -0700
changeset 16692 b6d3c26b2192
parent 16690 a428299c08cb
child 16693 6299fa379219
8011972: Field can be erroneously marked as contended when @Contended annotation isn't present Reviewed-by: kvn, kmo, shade
hotspot/src/share/vm/classfile/classFileParser.cpp
hotspot/src/share/vm/classfile/classFileParser.hpp
--- a/hotspot/src/share/vm/classfile/classFileParser.cpp	Wed Apr 10 09:52:49 2013 +0200
+++ b/hotspot/src/share/vm/classfile/classFileParser.cpp	Thu Apr 11 09:08:15 2013 -0700
@@ -1723,9 +1723,6 @@
       } else {
         coll->set_contended_group(0); // default contended group
       }
-      coll->set_contended(true);
-    } else {
-      coll->set_contended(false);
     }
   }
 }
--- a/hotspot/src/share/vm/classfile/classFileParser.hpp	Wed Apr 10 09:52:49 2013 +0200
+++ b/hotspot/src/share/vm/classfile/classFileParser.hpp	Thu Apr 11 09:08:15 2013 -0700
@@ -150,7 +150,6 @@
     void set_contended_group(u2 group) { _contended_group = group; }
     u2 contended_group() { return _contended_group; }
 
-    void set_contended(bool contended) { set_annotation(_sun_misc_Contended); }
     bool is_contended() { return has_annotation(_sun_misc_Contended); }
   };