-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GR-60436] Calling System.getenv() inside an isolate causes a memory leak #10234
Comments
Hi @alexfedorenchik, Thank you for reaching out to us! |
java --version
build app:
Same result:
|
just to note, this was not reproduced on previous version of graal and jdk
|
I was able to reproduce this issue on my end as well. We will take a closer look into this and I'll make sure to keep you updated. |
Describe the Issue
Calling System.getenv() inside an isolate causes a memory leak
Using the latest version of GraalVM can resolve many issues.
GraalVM Version
openjdk 21.0.2 2024-01-16
OpenJDK Runtime Environment GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30)
OpenJDK 64-Bit Server VM GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30, mixed mode, sharing)
Operating System and Version
Darwin MBPRO 23.6.0 Darwin Kernel Version 23.6.0: Fri Jul 5 17:55:37 PDT 2024; root:xnu-10063.141.1~2/RELEASE_ARM64_T6030 arm64
Troubleshooting Confirmation
Run Command
TEST_LEAK=Hello ./TestLeak
leaks $(pgrep -n TestLeak)
Expected Behavior
No leaks detected
Actual Behavior
Leak detected:
Steps to Reproduce
echo "Main-Class: TestLeak" > manifest.txt && javac TestLeak.java && jar -cvfm TestLeak.jar manifest.txt TestLeak.class && native-image -jar TestLeak.jar
TEST_LEAK=Hello ./TestLeak
leaks $(pgrep -n TestLeak)
Additional Context
No response
Run-Time Log Output and Error Messages
No response
The text was updated successfully, but these errors were encountered: