8234086: VM operation can be simplified

Reviewed-by: kbarrett, dholmes, dcubed
This commit is contained in:
Robbin Ehn 2019-11-29 12:09:25 +01:00
parent 6230791e9e
commit 3d7d54b145
14 changed files with 75 additions and 159 deletions

View file

@ -524,10 +524,9 @@ void Thread::start(Thread* thread) {
}
}
// Enqueue a VM_Operation to do the job for us - sometime later
void Thread::send_async_exception(oop java_thread, oop java_throwable) {
VM_ThreadStop* vm_stop = new VM_ThreadStop(java_thread, java_throwable);
VMThread::execute(vm_stop);
VM_ThreadStop vm_stop(java_thread, java_throwable);
VMThread::execute(&vm_stop);
}