mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
Merge
This commit is contained in:
commit
6e8916cdbb
34 changed files with 1085 additions and 590 deletions
|
@ -234,7 +234,8 @@ class InstanceKlass: public Klass {
|
|||
_misc_has_nonstatic_fields = 1 << 1, // for sizing with UseCompressedOops
|
||||
_misc_should_verify_class = 1 << 2, // allow caching of preverification
|
||||
_misc_is_anonymous = 1 << 3, // has embedded _inner_classes field
|
||||
_misc_has_default_methods = 1 << 4 // class/superclass/implemented interfaces has default methods
|
||||
_misc_is_contended = 1 << 4, // marked with contended annotation
|
||||
_misc_has_default_methods = 1 << 5 // class/superclass/implemented interfaces has default methods
|
||||
};
|
||||
u2 _misc_flags;
|
||||
u2 _minor_version; // minor version number of class file
|
||||
|
@ -552,6 +553,17 @@ class InstanceKlass: public Klass {
|
|||
return is_anonymous() ? java_mirror() : class_loader();
|
||||
}
|
||||
|
||||
bool is_contended() const {
|
||||
return (_misc_flags & _misc_is_contended) != 0;
|
||||
}
|
||||
void set_is_contended(bool value) {
|
||||
if (value) {
|
||||
_misc_flags |= _misc_is_contended;
|
||||
} else {
|
||||
_misc_flags &= ~_misc_is_contended;
|
||||
}
|
||||
}
|
||||
|
||||
// signers
|
||||
objArrayOop signers() const { return _signers; }
|
||||
void set_signers(objArrayOop s) { klass_oop_store((oop*)&_signers, s); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue