Invention Grant
- Patent Title: Working set adjustment in a managed environment
-
Application No.: US15859783Application Date: 2018-01-02
-
Publication No.: US10552318B2Publication Date: 2020-02-04
- Inventor: Michael H. Dawson , Charles R. Gracie , Graeme Johnson
- 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 Kristofer L. Haggerty
- Priority: CA2848683 20140410
- Main IPC: G06F17/30
- IPC: G06F17/30 ; G06F12/02

Abstract:
An illustrative embodiment of a computer-implemented method for working set adjustment receives a request to use less heap memory than an original maximum forming a new maximum, and determines whether a garbage collection will move objects in response to the request. Responsive to a determination the garbage collection will move objects, add a first callback triggered by initiation of the garbage collection and invoking a handler for the first callback notifying a memory manager to free objects allocated by balloon. The first callback completes and the garbage collection starts. A handler for a second callback is invoked which notifies the memory manager to allocate balloon objects and frees backing memory to an operating system, the balloon objects consuming an amount of memory space equal to a remaining portion of memory necessary to return to the operating system. Completion of the second call back allows the garbage collection to proceed as usual.
Public/Granted literature
- US20180121350A1 WORKING SET ADJUSTMENT IN A MANAGED ENVIRONMENT Public/Granted day:2018-05-03
Information query