mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8268368: Adopt cast notation for JavaThread conversions
Reviewed-by: dholmes, stefank
This commit is contained in:
parent
b6cfca8a89
commit
cd678a383f
64 changed files with 139 additions and 145 deletions
|
@ -561,7 +561,7 @@ void vm_exit(int code) {
|
|||
// Historically there must have been some exit path for which
|
||||
// that was not the case and so we set it explicitly - even
|
||||
// though we no longer know what that path may be.
|
||||
thread->as_Java_thread()->set_thread_state(_thread_in_vm);
|
||||
JavaThread::cast(thread)->set_thread_state(_thread_in_vm);
|
||||
}
|
||||
|
||||
// Fire off a VM_Exit operation to bring VM to a safepoint and exit
|
||||
|
@ -609,7 +609,7 @@ void vm_perform_shutdown_actions() {
|
|||
if (thread != NULL && thread->is_Java_thread()) {
|
||||
// We are leaving the VM, set state to native (in case any OS exit
|
||||
// handlers call back to the VM)
|
||||
JavaThread* jt = thread->as_Java_thread();
|
||||
JavaThread* jt = JavaThread::cast(thread);
|
||||
// Must always be walkable or have no last_Java_frame when in
|
||||
// thread_in_native
|
||||
jt->frame_anchor()->make_walkable(jt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue