diff options
author | kvn <none@none> | 2008-11-18 12:31:53 -0800 |
---|---|---|
committer | kvn <none@none> | 2008-11-18 12:31:53 -0800 |
commit | 3ae5c08bc0829b59c88c5104a6b36968f17a64f6 (patch) | |
tree | 02247df84773fb2a7e8f51e2825315582b0072b3 /src/share | |
parent | 5269d5ee6f4eecf9dd80385beb12587bb4087d74 (diff) |
6772413: code cleanup
Summary: Removed lines in adm64.make with interpret.o and moved few constant strings from header files.
Reviewed-by: never
Diffstat (limited to 'src/share')
-rw-r--r-- | src/share/vm/opto/c2_globals.hpp | 4 | ||||
-rw-r--r-- | src/share/vm/runtime/globals.hpp | 2 | ||||
-rw-r--r-- | src/share/vm/runtime/perfMemory.cpp | 8 | ||||
-rw-r--r-- | src/share/vm/runtime/perfMemory.hpp | 7 |
4 files changed, 12 insertions, 9 deletions
diff --git a/src/share/vm/opto/c2_globals.hpp b/src/share/vm/opto/c2_globals.hpp index 134209135..844d637e5 100644 --- a/src/share/vm/opto/c2_globals.hpp +++ b/src/share/vm/opto/c2_globals.hpp @@ -256,10 +256,10 @@ develop(intx, PrintIdealGraphPort, 4444, \ "Ideal graph printer to network port") \ \ - develop(ccstr, PrintIdealGraphAddress, "127.0.0.1", \ + notproduct(ccstr, PrintIdealGraphAddress, "127.0.0.1", \ "IP address to connect to visualizer") \ \ - develop(ccstr, PrintIdealGraphFile, NULL, \ + notproduct(ccstr, PrintIdealGraphFile, NULL, \ "File to dump ideal graph to. If set overrides the " \ "use of the network") \ \ diff --git a/src/share/vm/runtime/globals.hpp b/src/share/vm/runtime/globals.hpp index b32939b3c..67cbd2c70 100644 --- a/src/share/vm/runtime/globals.hpp +++ b/src/share/vm/runtime/globals.hpp @@ -493,7 +493,7 @@ class CommandLineFlags { develop(bool, DeoptimizeALot, false, \ "deoptimize at every exit from the runtime system") \ \ - develop(ccstrlist, DeoptimizeOnlyAt, "", \ + notproduct(ccstrlist, DeoptimizeOnlyAt, "", \ "a comma separated list of bcis to deoptimize at") \ \ product(bool, DeoptimizeRandom, false, \ diff --git a/src/share/vm/runtime/perfMemory.cpp b/src/share/vm/runtime/perfMemory.cpp index 0ae679bdd..d48d7b508 100644 --- a/src/share/vm/runtime/perfMemory.cpp +++ b/src/share/vm/runtime/perfMemory.cpp @@ -25,6 +25,14 @@ # include "incls/_precompiled.incl" # include "incls/_perfMemory.cpp.incl" +// Prefix of performance data file. +const char PERFDATA_NAME[] = "hsperfdata"; + +// Add 1 for the '_' character between PERFDATA_NAME and pid. The '\0' terminating +// character will be included in the sizeof(PERFDATA_NAME) operation. +static const size_t PERFDATA_FILENAME_LEN = sizeof(PERFDATA_NAME) + + UINT_CHARS + 1; + char* PerfMemory::_start = NULL; char* PerfMemory::_end = NULL; char* PerfMemory::_top = NULL; diff --git a/src/share/vm/runtime/perfMemory.hpp b/src/share/vm/runtime/perfMemory.hpp index 812ab3bac..0909bfa0c 100644 --- a/src/share/vm/runtime/perfMemory.hpp +++ b/src/share/vm/runtime/perfMemory.hpp @@ -95,7 +95,7 @@ typedef struct { } PerfDataEntry; // Prefix of performance data file. -static const char PERFDATA_NAME[] = "hsperfdata"; +extern const char PERFDATA_NAME[]; // UINT_CHARS contains the number of characters holding a process id // (i.e. pid). pid is defined as unsigned "int" so the maximum possible pid value @@ -103,11 +103,6 @@ static const char PERFDATA_NAME[] = "hsperfdata"; // string. static const size_t UINT_CHARS = 10; -// Add 1 for the '_' character between PERFDATA_NAME and pid. The '\0' terminating -// character will be included in the sizeof(PERFDATA_NAME) operation. -static const size_t PERFDATA_FILENAME_LEN = sizeof(PERFDATA_NAME) + - UINT_CHARS + 1; - /* the PerfMemory class manages creation, destruction, * and allocation of the PerfData region. */ |