comparison src/share/vm/runtime/perfMemory.hpp @ 434:de78b80cedec

6772413: code cleanup Summary: Removed lines in adm64.make with interpret.o and moved few constant strings from header files. Reviewed-by: never
author kvn
date Tue, 18 Nov 2008 12:31:53 -0800
parents a61af66fc99e
children ad8c8ca4ab0f
comparison
equal deleted inserted replaced
433:c1345e85f901 434:de78b80cedec
93 // data_type is T_ARRAY. 93 // data_type is T_ARRAY.
94 */ 94 */
95 } PerfDataEntry; 95 } PerfDataEntry;
96 96
97 // Prefix of performance data file. 97 // Prefix of performance data file.
98 static const char PERFDATA_NAME[] = "hsperfdata"; 98 extern const char PERFDATA_NAME[];
99 99
100 // UINT_CHARS contains the number of characters holding a process id 100 // UINT_CHARS contains the number of characters holding a process id
101 // (i.e. pid). pid is defined as unsigned "int" so the maximum possible pid value 101 // (i.e. pid). pid is defined as unsigned "int" so the maximum possible pid value
102 // would be 2^32 - 1 (4294967295) which can be represented as a 10 characters 102 // would be 2^32 - 1 (4294967295) which can be represented as a 10 characters
103 // string. 103 // string.
104 static const size_t UINT_CHARS = 10; 104 static const size_t UINT_CHARS = 10;
105
106 // Add 1 for the '_' character between PERFDATA_NAME and pid. The '\0' terminating
107 // character will be included in the sizeof(PERFDATA_NAME) operation.
108 static const size_t PERFDATA_FILENAME_LEN = sizeof(PERFDATA_NAME) +
109 UINT_CHARS + 1;
110 105
111 /* the PerfMemory class manages creation, destruction, 106 /* the PerfMemory class manages creation, destruction,
112 * and allocation of the PerfData region. 107 * and allocation of the PerfData region.
113 */ 108 */
114 class PerfMemory : AllStatic { 109 class PerfMemory : AllStatic {