mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8011972: Field can be erroneously marked as contended when @Contended annotation isn't present
Reviewed-by: kvn, kmo, shade
This commit is contained in:
parent
c99c99aa36
commit
50821686b5
2 changed files with 0 additions and 4 deletions
|
@ -1723,9 +1723,6 @@ void ClassFileParser::parse_annotations(u1* buffer, int limit,
|
|||
} else {
|
||||
coll->set_contended_group(0); // default contended group
|
||||
}
|
||||
coll->set_contended(true);
|
||||
} else {
|
||||
coll->set_contended(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -150,7 +150,6 @@ class ClassFileParser VALUE_OBJ_CLASS_SPEC {
|
|||
void set_contended_group(u2 group) { _contended_group = group; }
|
||||
u2 contended_group() { return _contended_group; }
|
||||
|
||||
void set_contended(bool contended) { set_annotation(_sun_misc_Contended); }
|
||||
bool is_contended() { return has_annotation(_sun_misc_Contended); }
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue