mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8319748: [JVMCI] TestUseCompressedOopsFlagsWithUlimit.java crashes on libgraal
Reviewed-by: never, thartmann
This commit is contained in:
parent
7d8adfa855
commit
4451a927bc
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue