[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5684) Change Javassist usage to not use javassist.util.proxy.ProxyFactory

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Jan 2 00:48:19 EST 2012


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44810#comment-44810 ] 

Steve Ebersole commented on HHH-5684:
-------------------------------------

And really, I have not seen any reports about such leaks.  There is a lot of low level details to duplicate over from {{javassist.util.proxy.ProxyFactory}} if we want to go this route.  Obviously trying to avoid that :)

> Change Javassist usage to not use javassist.util.proxy.ProxyFactory
> -------------------------------------------------------------------
>
>                 Key: HHH-5684
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5684
>             Project: Hibernate Core
>          Issue Type: Improvement
>            Reporter: Steve Ebersole
>            Assignee: Steve Ebersole
>              Labels: bytecode
>
> javassist.util.proxy.ProxyFactory maintains a cache of proxy classes generated.  Apparently it does this based on a static variable.  First and foremost, this cache is completely unnecessary given how Hibernate creates and uses these proxy classes.  Second there is some conjecture that this might possibly contribute to permgen leaks.
> Here is an example of leveraging Javassist without using its ProxyFactory: http://github.com/weld/core/blob/master/impl/src/main/java/org/jboss/weld/bean/proxy/ProxyFactory.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list