mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8003985: Support @Contended Annotation - JEP 142
HotSpot changes to support @Contended annotation. Reviewed-by: coleenp, kvn, jrose
This commit is contained in:
parent
ae35dfeeec
commit
0614ed6542
11 changed files with 617 additions and 92 deletions
|
@ -160,9 +160,26 @@ class FieldStreamBase : public StackObj {
|
|||
return field()->offset();
|
||||
}
|
||||
|
||||
int allocation_type() const {
|
||||
return field()->allocation_type();
|
||||
}
|
||||
|
||||
void set_offset(int offset) {
|
||||
field()->set_offset(offset);
|
||||
}
|
||||
|
||||
bool is_offset_set() const {
|
||||
return field()->is_offset_set();
|
||||
}
|
||||
|
||||
bool is_contended() const {
|
||||
return field()->is_contended();
|
||||
}
|
||||
|
||||
int contended_group() const {
|
||||
return field()->contended_group();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// Iterate over only the internal fields
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue