Skip to content

Prevent classloader leak via JNI#13584

Merged
normanmaurer merged 5 commits into4.1from
jni_class_weak
Sep 5, 2023
Merged

Prevent classloader leak via JNI#13584
normanmaurer merged 5 commits into4.1from
jni_class_weak

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

@normanmaurer normanmaurer commented Sep 4, 2023

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:
Fixes #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.

Fixes #13480
@normanmaurer
Copy link
Copy Markdown
Member Author

/cc @SgtSilvio

@normanmaurer normanmaurer added this to the 4.1.98.Final milestone Sep 4, 2023
normanmaurer and others added 2 commits September 4, 2023 12:03
Co-authored-by: Silvio Giebl <silvio.giebl@hivemq.com>
Co-authored-by: Silvio Giebl <silvio.giebl@hivemq.com>
@normanmaurer normanmaurer merged commit ea801cf into 4.1 Sep 5, 2023
@normanmaurer normanmaurer deleted the jni_class_weak branch September 5, 2023 06:43
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.

Classloader memory leak via JNI global references

2 participants