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

Release MessageBodyWorkers when Response gets closed. #5039

Merged
merged 3 commits into from
Apr 25, 2022

Conversation

jansupol
Copy link
Contributor

Signed-off-by: jansupol jan.supol@oracle.com

@jansupol
Copy link
Contributor Author

When a user framework holds Response, but the it is closed, the MessageBodyWorkers references the injectionManager. The MessageBodyWorkers is no longer required for a closed message, but the GC cannot release the MBW.
The MBW keeps a reference to InjectionManager & HK2.

The PR tries to prevent OOME when the user closes the Response.

Signed-off-by: jansupol <jan.supol@oracle.com>
Signed-off-by: jansupol <jan.supol@oracle.com>
…cally

Signed-off-by: jansupol <jan.supol@oracle.com>
@senivam senivam merged commit 01b88fe into eclipse-ee4j:master Apr 25, 2022
@senivam senivam added this to the 2.36 milestone Apr 25, 2022
This was referenced Jun 14, 2022
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.

3 participants