Skip to content
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

Prevent classloader leak via JNI #817

Merged
merged 1 commit into from
Sep 5, 2023
Merged

Prevent classloader leak via JNI #817

merged 1 commit into from
Sep 5, 2023

Conversation

normanmaurer
Copy link
Member

Motivation:

We should use weak references to hold global references to our own classes as otherwise it will be not possible to unload the classloader.

Modifications:

Use weak references for the classes in JNI.

Result:

No more classloader leaks. Related to netty/netty#13480

Motivation:

We should use weak references to hold global references to our own classes as otherwise it will be not possible to unload the classloader.

Modifications:

Use weak references for the classes in JNI.

Result:

No more classloader leaks. Related to netty/netty#13480
@normanmaurer normanmaurer added this to the 2.0.62.Final milestone Sep 4, 2023
@normanmaurer normanmaurer merged commit 040e305 into main Sep 5, 2023
7 checks passed
@normanmaurer normanmaurer deleted the jni_classloader branch September 5, 2023 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants