hotspot/src/share/vm/classfile/classFileParser.hpp
changeset 16692 b6d3c26b2192
parent 16617 6235d2c7549f
child 17073 99baa410e207
equal deleted inserted replaced
16690:a428299c08cb 16692:b6d3c26b2192
   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 {