mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8191567: Refactor ciInstanceKlass G1 keep alive barrier to use Access API
Reviewed-by: dholmes, rkennke, tschatzl
This commit is contained in:
parent
01ab4faae4
commit
8f739404a7
4 changed files with 21 additions and 25 deletions
|
@ -640,6 +640,11 @@ class InstanceKlass: public Klass {
|
|||
return is_anonymous() ? java_mirror() : class_loader();
|
||||
}
|
||||
|
||||
// Load the klass_holder as a phantom. This is useful when a weak Klass
|
||||
// pointer has been "peeked" and then must be kept alive before it may
|
||||
// be used safely.
|
||||
oop klass_holder_phantom();
|
||||
|
||||
bool is_contended() const {
|
||||
return (_misc_flags & _misc_is_contended) != 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue