Methods for managing memory in a run-time environment including activation and deactivation of objects
AssigneeOracle Corporation
InventorsHarlan Sexton, Peter Benson, Jerry Schwarz
Life of this patent
Estimating the term…
Abstract
Methods for managing memory in a run-time environment are described, in which an object is activated by both initializing the object and registering a routine to deallocate or deactivate the object at the end of a call (e.g. by setting it to null to unreference the object), which prevents the object, which may be a large object, from being migrated into session memory. This deactivation routine is called after the finalization of garbage collected objects that may use the object. In a subsequent call, the object is checked before use to determine if the object is already activated and re-initialized if the object is not activated.
Claims10
A method of managing memory in a run-time environment, comprising the steps of:
- activating an object, wherein said activating includes the steps of:
- initializing the object;
- and
- registering a routine to deactivate the object at an end of a call;
- and
- executing the routine to deactivate the object at the end of the call.
A method of managing memory in a run-time environment, comprising the steps of:
- accessing an object by means of an external reference, wherein said accessing includes the steps of:
- extracting an index from the external reference;
- fetching a pointer value from an entry in a value array at a position indicated by the index;
- if the pointer value is a null value, then performing the steps of:
- fetching a descriptor from an entry in a descriptor array at a position indicated by the index;
- initializing the object based on the descriptor;
- and
- registering a routine to deactivate the object at an end of a call;
- and
- executing the routine to deactivate the object at the end of the call.
A computer-readable medium bearing instructions for managing memory in a run-time environment, said instructions being arranged to cause one or more processors upon execution thereby to perform the steps of:
- activating an object, wherein said activating includes the steps of:
- initializing the object;
- and
- registering a routine to deactivate the object at an end of a call;
- and
- executing the routine to deactivate the object at the end of the call.
A computer-readable medium bearing instructions for managing memory in a run-time environment, said instructions being arranged to cause one or more processors upon execution thereby to perform the steps of:
- accessing an object by means of an external reference, wherein said accessing includes the steps of:
- extracting an index from the external reference;
- fetching a pointer value from an entry in a value array at a position indicated by the index;
- if the pointer value is a null value, then performing the steps of:
- fetching a descriptor from an entry in a descriptor array at a position indicated by the index;
- initializing the object based on the descriptor;
- and
- registering a routine to deactivate the object at an end of a call;
- and
- executing the routine to deactivate the object at the end of the call.
Dependencies are inferred from the claim text.