Method and system for global constant management
5 Assignments
0 Petitions
Accused Products
Abstract
Method and system for global constant management. A method of operating a computer is described in which, for data structures and a set of data structures, the date structure is received from a first memory. The data structure includes one or more sets of instructions and a set of one or more constants. The data structure is stored in a second memory. If constants from the data structure have not been stored in other data structures in the second memory, other than the first data structure, then constants in the data structures are stored in data structures in second memory. The constants from the first data structure in the second memory are replaced with links to respective other data structures in the second memory. In one example system, the data structure from the first memory comprises a Java class, and the sets of instructions comprise Java methods. The constants from the data structure in the first memory may comprise a constant pool.
70 Citations
116 Claims
-
1-32. -32. (canceled)
-
33. A system, comprising
one or more processors, a memory coupled to the one or more processors, wherein the memory includes program instructions executable by the one or more processors to: -
determine whether a copy of at least a portion of a first constant included within a first executable object exists within a specified memory region; and
in response to determining that a copy of the at least a portion of the first constant does not exist within the specified memory region, store a copy of the at least a portion of the first constant within the specified memory region. - View Dependent Claims (34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 74)
-
-
48. A system, comprising:
-
one or more processors, a memory coupled to the one or more processors, wherein the memory includes program instructions executable by the one or more processors to;
classify a set of constants identified in a first memory region into two or more categories including a first category and a second category, wherein constants in the first category are expected to have a higher probability of common use by two or more executable objects than constants placed in the second category, wherein the first category comprises a first constant;
determine whether a data structure comprising at least a portion of the first constant exists within a second memory region; and
in response to determining that a data structure comprising at least a portion of the first constant does not exist within the second memory region, copy at least a portion of the first constant into a particular data structure in the second memory region. - View Dependent Claims (49, 50, 51, 52, 53, 54, 55)
-
-
56. A computer-implemented method, comprising:
-
determining whether a copy of at least a portion of a first constant included within a first executable object exists within a specified memory region; and
in response to determining that a copy of the at least a portion of the first constant does not exist within the specified memory region, storing a copy of the at least a portion of the first constant within the specified memory region. - View Dependent Claims (57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70)
-
-
71. A computer-implemented method, comprising:
-
classifying a set of constants identified in a first memory region into two or more categories including a first category and a second category, wherein constants in the first category are expected to have a higher probability of common use by two or more executable objects than constants placed in the second category, wherein the first category comprises a first constant;
determining whether a data structure comprising at least a portion of the first constant exists within a second memory region; and
in response to determining that a data structure comprising at least a portion of the first constant does not exist within the second memory region, copying at least a portion of the first constant into a particular data structure in the second memory region. - View Dependent Claims (72, 73, 75, 76, 77, 78)
-
-
79. A computer readable storage medium comprising program instructions, wherein the instructions are computer-executable to:
-
determine whether a copy of at least a portion of a first constant included within a first executable object exists within a specified memory region; and
in response to determining that a copy of the at least a portion of the first constant does not exist within the specified memory region, store a copy of the at least a portion of the first constant within the specified memory region. - View Dependent Claims (80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93)
-
-
94. A computer readable storage medium comprising program instructions, wherein the instructions are computer-executable to:
-
classify a set of constants identified in a first memory region into two or more categories including a first category and a second category, wherein constants in the first category are expected to have a higher probability of common use by two or more executable objects than constants placed in the second category, wherein the first category comprises a first constant;
determine whether a data structure comprising at least a portion of the first constant exists within a second memory region; and
in response to determining that a data structure comprising at least a portion of the first constant does not exist within the second memory region, copy at least a portion of the first constant into a particular data structure in the second memory region. - View Dependent Claims (95, 96, 97, 98, 99, 100, 101)
-
-
102. A system, comprising:
-
a first computing device; and
a second computing device linked to the first computing device via a network;
wherein the first computing device is configured to;
generate a first executable object from source code; and
transmit the first executable object to the second computing device over a network; and
wherein the second computing device is configured to;
determine whether a copy of at least a portion of a first constant included within the first executable object exists within a specified memory region at the second computing device; and
in response to determining that a copy of the at least a portion of the first constant does not exist within the specified memory region, store a copy of the at least a portion of the first constant within the specified memory region. - View Dependent Claims (103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116)
-
Specification