1. A computer-implemented method comprising: accepting input that indicates an amount of allocated unmanaged memory; associating the input with a managed object on a heap; and adjusting a collection strategy for collecting the managed object based on the input.