mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8252406: Introduce Thread::as_Java_thread() convenience function
Reviewed-by: shade, coleenp, kbarrett, dcubed
This commit is contained in:
parent
488022689f
commit
976acddeb5
110 changed files with 360 additions and 456 deletions
|
@ -150,9 +150,7 @@ void VM_DeoptimizeAll::doit() {
|
|||
|
||||
|
||||
void VM_ZombieAll::doit() {
|
||||
JavaThread *thread = (JavaThread *)calling_thread();
|
||||
assert(thread->is_Java_thread(), "must be a Java thread");
|
||||
thread->make_zombies();
|
||||
calling_thread()->as_Java_thread()->make_zombies();
|
||||
}
|
||||
|
||||
#endif // !PRODUCT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue