Skip to content

Commit

Permalink
8319748: [JVMCI] TestUseCompressedOopsFlagsWithUlimit.java 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

JVMCIEnv::~JVMCIEnv() {
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) {
return;
Expand Down

1 comment on commit 4451a92

@openjdk-notifier
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.