mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +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
|
@ -178,7 +178,7 @@ class ThreadInVMfromUnknown {
|
|||
ThreadInVMfromUnknown() : _thread(NULL) {
|
||||
Thread* t = Thread::current();
|
||||
if (t->is_Java_thread()) {
|
||||
JavaThread* t2 = t->as_Java_thread();
|
||||
JavaThread* t2 = JavaThread::cast(t);
|
||||
if (t2->thread_state() == _thread_in_native) {
|
||||
_thread = t2;
|
||||
ThreadStateTransition::transition_from_native(t2, _thread_in_vm);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue