Patent ID: 9697047
Date: 2017-07-04
CPC Classifications: G06F

Claim:
1. A method for cooperative allocation of memory, the method comprising the steps of: sending, by a first process executing on a computer, a first request to release memory, wherein (i) the first request is directly sent from the first process to a second process executing on the computer, and (ii) the first request to release memory includes an amount of memory for allocation to the first process; determining, by the second process, an amount of hoarded memory allocated to the second process; and responsive to the amount of hoarded memory allocated to the second process being able to satisfy the amount of memory for allocation to the first process in the first request to release memory, releasing, by the second process, the hoarded memory allocated to the second process equal to the amount of memory for allocation to the first process in the first request to release memory, wherein the second process releases the hoarded memory directly to the first process.