< prev index next > src/hotspot/share/jfr/jni/jfrJavaSupport.cpp
Print this page
/*
- * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2026, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
#include "oops/instanceOop.hpp"
#include "oops/klass.inline.hpp"
#include "oops/objArrayKlass.hpp"
#include "oops/objArrayOop.inline.hpp"
#include "oops/oop.inline.hpp"
+ #include "oops/oopCast.inline.hpp"
#include "runtime/fieldDescriptor.inline.hpp"
#include "runtime/handles.inline.hpp"
#include "runtime/java.hpp"
#include "runtime/javaCalls.hpp"
#include "runtime/javaThread.hpp"
Symbol** JfrJavaSupport::symbol_array(jobjectArray string_array, JavaThread* thread, intptr_t* result_array_size, bool c_heap /* false */) {
DEBUG_ONLY(JfrJavaSupport::check_java_thread_in_vm(thread));
assert(string_array != nullptr, "invariant");
assert(result_array_size != nullptr, "invariant");
- objArrayOop arrayOop = objArrayOop(resolve_non_null(string_array));
+ refArrayOop arrayOop = oop_cast<refArrayOop>(resolve_non_null(string_array));
const int length = arrayOop->length();
*result_array_size = length;
Symbol** result_array = allocate_symbol_array(c_heap, length, thread);
assert(result_array != nullptr, "invariant");
for (int i = 0; i < length; i++) {
< prev index next >