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
|
@ -3624,7 +3624,7 @@ void InstanceKlass::print_class_load_logging(ClassLoaderData* loader_data,
|
|||
} else if (loader_data == ClassLoaderData::the_null_class_loader_data()) {
|
||||
Thread* current = Thread::current();
|
||||
Klass* caller = current->is_Java_thread() ?
|
||||
current->as_Java_thread()->security_get_caller_class(1):
|
||||
JavaThread::cast(current)->security_get_caller_class(1):
|
||||
NULL;
|
||||
// caller can be NULL, for example, during a JVMTI VM_Init hook
|
||||
if (caller != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue