Skip to content


8319748: [JVMCI] crashes on…
Browse files Browse the repository at this point in the history
… libgraal

Reviewed-by: never, thartmann
  • Loading branch information
Doug Simon committed Nov 9, 2023
1 parent 7d8adfa commit 4451a92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotspot/share/jvmci/jvmciEnv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,9 @@ jboolean JVMCIEnv::transfer_pending_exception(JavaThread* THREAD, JVMCIEnv* peer

if (_init_error_msg != nullptr) {
os::free((void*) _init_error_msg);
// The memory allocated in libjvmci was not allocated with os::malloc
// so must not be freed with os::free.
ALLOW_C_FUNCTION(::free((void*) _init_error_msg));
if (_init_error != JNI_OK) {
Expand Down

1 comment on commit 4451a92

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.