equal
deleted
inserted
replaced
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 { |