Skip to content

RESTEASY-907 - fix memory leak - #344

Closed
ctomc wants to merge 1 commit into
resteasy:masterfrom
ctomc:mem-leak
Closed

ctomc wants to merge 1 commit into
resteasy:masterfrom
ctomc:mem-leak

Conversation

@ctomc

@ctomc ctomc commented Jul 15, 2013

Copy link
Copy Markdown
Contributor

This fix is ugly but does its job, all classes in question should be revisited and properly fixed

@patriot1burke

Copy link
Copy Markdown
Collaborator

I'm not sure you need all these weak references. The ValidatorContextResolver will be created per Resteasy deployment. You could have the factory as a member variable of ValidatorContextResolver and initialize it on demand just in case there are deployment ordering problems.

GeneralValidator is created per JAX-RS method, which is also scoped to the deployment. So, you don't need weak references there either.

@ctomc

ctomc commented Jul 15, 2013

Copy link
Copy Markdown
Contributor Author

You are right, we had problem in WildFly where DeploymentUnits ware not GCd.
It this pops up again in another form i will comment on jira.

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