8011972: Field can be erroneously marked as contended when @Contended annotation isn't present

Reviewed-by: kvn, kmo, shade
This commit is contained in:
Vladimir Ivanov 2013-04-11 09:08:15 -07:00
parent c99c99aa36
commit 50821686b5
2 changed files with 0 additions and 4 deletions

View file

@ -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);
}
}
}

View file

@ -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); }
};