mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8169881: Remove implicit Handle conversions oop->Handle
Pass THREAD to Handle as argument instead of implicit Thread::current() call. Reviewed-by: dholmes, sspitsyn
This commit is contained in:
parent
b1171ce431
commit
0b3bc5c4f0
65 changed files with 424 additions and 397 deletions
|
@ -85,3 +85,13 @@ objArrayOop oopFactory::new_objArray(Klass* klass, int length, TRAPS) {
|
|||
return InstanceKlass::cast(klass)->allocate_objArray(1, length, THREAD);
|
||||
}
|
||||
}
|
||||
|
||||
objArrayHandle oopFactory::new_objArray_handle(Klass* klass, int length, TRAPS) {
|
||||
objArrayOop obj = new_objArray(klass, length, CHECK_(objArrayHandle()));
|
||||
return objArrayHandle(THREAD, obj);
|
||||
}
|
||||
|
||||
typeArrayHandle oopFactory::new_byteArray_handle(int length, TRAPS) {
|
||||
typeArrayOop obj = new_byteArray(length, CHECK_(typeArrayHandle()));
|
||||
return typeArrayHandle(THREAD, obj);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue