mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8214972: Uses of klass_holder() except GC need to apply GC barriers
Fix klass_holder() and make all callers use it, remove holder_phantom(). Reviewed-by: eosterlund, dlong
This commit is contained in:
parent
0a8c4491c2
commit
3d0faa649c
9 changed files with 12 additions and 23 deletions
|
@ -49,14 +49,14 @@ JVMCIKlassHandle::JVMCIKlassHandle(Thread* thread, Klass* klass) {
|
|||
_thread = thread;
|
||||
_klass = klass;
|
||||
if (klass != NULL) {
|
||||
_holder = Handle(_thread, klass->holder_phantom());
|
||||
_holder = Handle(_thread, klass->klass_holder());
|
||||
}
|
||||
}
|
||||
|
||||
JVMCIKlassHandle& JVMCIKlassHandle::operator=(Klass* klass) {
|
||||
_klass = klass;
|
||||
if (klass != NULL) {
|
||||
_holder = Handle(_thread, klass->holder_phantom());
|
||||
_holder = Handle(_thread, klass->klass_holder());
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue