mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +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
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -277,7 +277,7 @@ const char *JvmtiTrace::safe_get_thread_name(Thread *thread) {
|
|||
if (!thread->is_Java_thread()) {
|
||||
return thread->name();
|
||||
}
|
||||
oop threadObj = thread->as_Java_thread()->threadObj();
|
||||
oop threadObj = JavaThread::cast(thread)->threadObj();
|
||||
if (threadObj == NULL) {
|
||||
return "NULL";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue