comparison src/share/vm/oops/fieldStreams.hpp @ 3995:4a916f2ce331

8003985: Support @Contended Annotation - JEP 142 Summary: HotSpot changes to support @Contended annotation. Reviewed-by: coleenp, kvn, jrose Contributed-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>
author jwilhelm
date Mon, 14 Jan 2013 15:17:47 +0100
parents da91efe96a93
children b2e698d2276c
comparison
equal deleted inserted replaced
2:a4b2e3e92cbf 3:f06258d2a0da
158 158
159 int offset() const { 159 int offset() const {
160 return field()->offset(); 160 return field()->offset();
161 } 161 }
162 162
163 int allocation_type() const {
164 return field()->allocation_type();
165 }
166
163 void set_offset(int offset) { 167 void set_offset(int offset) {
164 field()->set_offset(offset); 168 field()->set_offset(offset);
165 } 169 }
170
171 bool is_offset_set() const {
172 return field()->is_offset_set();
173 }
174
175 bool is_contended() const {
176 return field()->is_contended();
177 }
178
179 int contended_group() const {
180 return field()->contended_group();
181 }
182
166 }; 183 };
167 184
168 // Iterate over only the internal fields 185 // Iterate over only the internal fields
169 class JavaFieldStream : public FieldStreamBase { 186 class JavaFieldStream : public FieldStreamBase {
170 public: 187 public: