System and method for determining whether an array is a read-only array
AssigneeOracle America, Inc.
InventorsIoi K. Lam, Oleg A. Pliss
Life of this patent
Estimating the term…
Loading patent…
AssigneeOracle America, Inc.
InventorsIoi K. Lam, Oleg A. Pliss
Estimating the term…
One embodiment of the present invention provides a system that determines whether a data structure, such as an array, is modifiable. First, the system loads a source file for a class. The system then examines the source file to identify a set of data structures in the class, and uses escape analysis to determine whether each data structure is modifiable. The system then performs an action based on the determination. In a variation on this embodiment, if the data structure is not determined to be modifiable, performing the action involves storing the data structure in a read-only memory (ROM) instead of a random-access memory (RAM), which leaves more RAM available for other purposes.
A method for determining whether an array is read-only, comprising:
A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for determining whether an array is read-only, the method comprising:
A computer system that determines whether an array is read-only, comprising:
Dependencies are inferred from the claim text.