changeset 4476:9befe2fce567

8011972: Field can be erroneously marked as contended when @Contended annotation isn't present Reviewed-by: kvn, kmo, shade
author vlivanov
date Thu, 11 Apr 2013 09:08:15 -0700
parents 84ab5667f290
children b5db9d29062f
files src/share/vm/classfile/classFileParser.cpp src/share/vm/classfile/classFileParser.hpp
diffstat 2 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/classFileParser.cpp	Wed Apr 10 09:52:49 2013 +0200
+++ b/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/src/share/vm/classfile/classFileParser.hpp	Wed Apr 10 09:52:49 2013 +0200
+++ b/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); }
   };