International Business Machines Corporation
Escape analysis support for method redefinition
Last updated:
Abstract:
An embodiment performs escape analysis of a function as a compiler optimization and stack-allocates an object referenced by the function. At runtime, the embodiment includes detecting a hot code replacement of a portion of the function while the referenced object is stored in stack memory. Responsive to detecting the hot code replacement, the embodiment includes allocating heap memory for the object and moving the object from the stack memory to the allocated heap memory. The embodiment also updates references to the object that were pointing to the object in the stack memory to instead point to the object in the heap memory.
Status:
Grant
Type:
Utility
Filling date:
13 May 2020
Issue date:
26 Jul 2022