< prev index next >

src/share/vm/runtime/perfMemory.cpp

Print this page




  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "logging/log.hpp"
  27 #include "memory/allocation.inline.hpp"
  28 #include "prims/jvm.h"
  29 #include "runtime/arguments.hpp"
  30 #include "runtime/java.hpp"
  31 #include "runtime/mutex.hpp"
  32 #include "runtime/mutexLocker.hpp"
  33 #include "runtime/orderAccess.inline.hpp"
  34 #include "runtime/os.hpp"
  35 #include "runtime/perfData.hpp"
  36 #include "runtime/perfMemory.hpp"
  37 #include "runtime/safepoint.hpp"
  38 #include "runtime/statSampler.hpp"

  39 #include "utilities/globalDefinitions.hpp"
  40 
  41 // Prefix of performance data file.
  42 const char               PERFDATA_NAME[] = "hsperfdata";
  43 
  44 // Add 1 for the '_' character between PERFDATA_NAME and pid. The '\0' terminating
  45 // character will be included in the sizeof(PERFDATA_NAME) operation.
  46 static const size_t PERFDATA_FILENAME_LEN = sizeof(PERFDATA_NAME) +
  47                                             UINT_CHARS + 1;
  48 
  49 char*                    PerfMemory::_start = NULL;
  50 char*                    PerfMemory::_end = NULL;
  51 char*                    PerfMemory::_top = NULL;
  52 size_t                   PerfMemory::_capacity = 0;
  53 jint                     PerfMemory::_initialized = false;
  54 PerfDataPrologue*        PerfMemory::_prologue = NULL;
  55 
  56 void perfMemory_init() {
  57 
  58   if (!UsePerfData) return;




  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "logging/log.hpp"
  27 #include "memory/allocation.inline.hpp"
  28 #include "prims/jvm.h"
  29 #include "runtime/arguments.hpp"
  30 #include "runtime/java.hpp"
  31 #include "runtime/mutex.hpp"
  32 #include "runtime/mutexLocker.hpp"
  33 #include "runtime/orderAccess.inline.hpp"
  34 #include "runtime/os.hpp"
  35 #include "runtime/perfData.hpp"
  36 #include "runtime/perfMemory.hpp"
  37 #include "runtime/safepoint.hpp"
  38 #include "runtime/statSampler.hpp"
  39 #include "utilities/align.hpp"
  40 #include "utilities/globalDefinitions.hpp"
  41 
  42 // Prefix of performance data file.
  43 const char               PERFDATA_NAME[] = "hsperfdata";
  44 
  45 // Add 1 for the '_' character between PERFDATA_NAME and pid. The '\0' terminating
  46 // character will be included in the sizeof(PERFDATA_NAME) operation.
  47 static const size_t PERFDATA_FILENAME_LEN = sizeof(PERFDATA_NAME) +
  48                                             UINT_CHARS + 1;
  49 
  50 char*                    PerfMemory::_start = NULL;
  51 char*                    PerfMemory::_end = NULL;
  52 char*                    PerfMemory::_top = NULL;
  53 size_t                   PerfMemory::_capacity = 0;
  54 jint                     PerfMemory::_initialized = false;
  55 PerfDataPrologue*        PerfMemory::_prologue = NULL;
  56 
  57 void perfMemory_init() {
  58 
  59   if (!UsePerfData) return;


< prev index next >