comparison src/share/vm/classfile/classFileParser.hpp @ 9083: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 16885e702c88
children cc70cbbd422e
comparison
equal deleted inserted replaced
9081:84ab5667f290 9083:9befe2fce567
148 bool has_annotation(ID id) { return (nth_bit((int)id) & _annotations_present) != 0; } 148 bool has_annotation(ID id) { return (nth_bit((int)id) & _annotations_present) != 0; }
149 149
150 void set_contended_group(u2 group) { _contended_group = group; } 150 void set_contended_group(u2 group) { _contended_group = group; }
151 u2 contended_group() { return _contended_group; } 151 u2 contended_group() { return _contended_group; }
152 152
153 void set_contended(bool contended) { set_annotation(_sun_misc_Contended); }
154 bool is_contended() { return has_annotation(_sun_misc_Contended); } 153 bool is_contended() { return has_annotation(_sun_misc_Contended); }
155 }; 154 };
156 155
157 // This class also doubles as a holder for metadata cleanup. 156 // This class also doubles as a holder for metadata cleanup.
158 class FieldAnnotationCollector: public AnnotationCollector { 157 class FieldAnnotationCollector: public AnnotationCollector {