Invention Grant
- Patent Title: Efficiently using memory for Java collection objects
- Patent Title (中): 有效地为Java集合对象使用内存
-
Application No.: US15132390Application Date: 2016-04-19
-
Publication No.: US09588885B1Publication Date: 2017-03-07
- Inventor: Guru C. Ganta , Gireesh Punathil
- Applicant: International Business Machines Corporation
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent Michael O'Keefe
- Main IPC: G06F12/00
- IPC: G06F12/00 ; G06F12/02 ; G06F9/455 ; G06F12/08

Abstract:
A method for collection instance resizing. The method may include identifying at least one collection object within a collection framework of a virtual machine. The method may also include determining the at least one identified collection object satisfies at least one preconfigured criteria. The method may further include determining a garbage collection cycle count associated with the at least one identified collection object exceeds a preconfigured threshold. The method may also include determining an occupancy ratio associated with the at least one identified collection object is less than a preconfigured shrink threshold. The method may further include restructuring the at least one identified collection object based on the at least one identified collection object satisfying the at least one preconfigured criteria, the garbage collection cycle count exceeding the preconfigured threshold, and the occupancy ratio being less than the preconfigured shrink threshold.
Information query