发明名称 Prevention of classloader memory leaks in multitier enterprise applications
摘要 A classloader cache class definition is obtained by a processor. The classloader cache class definition includes code that creates a classloader object cache that is referenced by a strong internal reference by a classloader object in response to instantiation of the classloader cache class definition. A classloader object cache is instantiated using the obtained classloader cache class definition. The strong internal reference is created at instantiation of the classloader object cache. A public interface to the classloader object cache is provided. The public interface to the classloader object cache operates as a weak reference to the classloader object cache and provides external access to the classloader object cache.
申请公布号 US9229743(B2) 申请公布日期 2016.01.05
申请号 US201113243508 申请日期 2011.09.23
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 Sundaresan Vijay;Voldman Andres H.
分类号 G06F9/44;G06F12/02;G06F12/08;G06F9/445 主分类号 G06F9/44
代理机构 Lee Law, PLLC 代理人 Lee Law, PLLC ;Lee Christopher B.
主权项 1. A system, comprising: a memory; and a processor programmed to: obtain a classloader cache class definition that comprises code that creates a classloader object cache that is referenced via a strong internal reference by a classloader object in response to instantiation of the classloader cache class definition; instantiate the classloader object cache within the memory using the obtained classloader cache class definition, where the strong internal reference is created at instantiation of the classloader object cache; and provide a public interface to the classloader object cache that operates as a weak reference to the classloader object cache and that provides external access to the classloader object cache; where the strong internal reference comprises a static reference to the classloader object cache within an implementation class that implements the classloader object cache and the weak reference to the classloader object cache allows garbage collection of the classloader object cache to occur in response to the classloader object cache being unloaded.
地址 Armonk NY US
您可能感兴趣的专利