src/share/vm/services/memTracker.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hsx-gc Sdiff src/share/vm/services

src/share/vm/services/memTracker.hpp

Print this page
rev 3849 : imported patch thread.inline.hpp


  92             bool summary_only = true) { }
  93 
  94    static inline void sync() { }
  95    static inline void thread_exiting(JavaThread* thread) { }
  96 
  97 };
  98 
  99 
 100 #else // !INCLUDE_NMT
 101 
 102 #include "memory/allocation.hpp"
 103 #include "runtime/globals.hpp"
 104 #include "runtime/mutex.hpp"
 105 #include "runtime/os.hpp"
 106 #include "runtime/thread.hpp"
 107 #include "services/memPtr.hpp"
 108 #include "services/memRecorder.hpp"
 109 #include "services/memSnapshot.hpp"
 110 #include "services/memTrackWorker.hpp"
 111 
 112 #ifdef SOLARIS
 113 #include "thread_solaris.inline.hpp"
 114 #endif
 115 
 116 extern bool NMT_track_callsite;
 117 
 118 #ifdef ASSERT
 119   #define DEBUG_CALLER_PC  (NMT_track_callsite ? os::get_caller_pc(2) : 0)
 120 #else
 121   #define DEBUG_CALLER_PC  0
 122 #endif
 123 
 124 // The thread closure walks threads to collect per-thread
 125 // memory recorders at NMT sync point
 126 class SyncThreadRecorderClosure : public ThreadClosure {
 127  private:
 128   int _thread_count;
 129 
 130  public:
 131   SyncThreadRecorderClosure() {
 132     _thread_count =0;
 133   }
 134 
 135   void do_thread(Thread* thread);




  92             bool summary_only = true) { }
  93 
  94    static inline void sync() { }
  95    static inline void thread_exiting(JavaThread* thread) { }
  96 
  97 };
  98 
  99 
 100 #else // !INCLUDE_NMT
 101 
 102 #include "memory/allocation.hpp"
 103 #include "runtime/globals.hpp"
 104 #include "runtime/mutex.hpp"
 105 #include "runtime/os.hpp"
 106 #include "runtime/thread.hpp"
 107 #include "services/memPtr.hpp"
 108 #include "services/memRecorder.hpp"
 109 #include "services/memSnapshot.hpp"
 110 #include "services/memTrackWorker.hpp"
 111 




 112 extern bool NMT_track_callsite;
 113 
 114 #ifdef ASSERT
 115   #define DEBUG_CALLER_PC  (NMT_track_callsite ? os::get_caller_pc(2) : 0)
 116 #else
 117   #define DEBUG_CALLER_PC  0
 118 #endif
 119 
 120 // The thread closure walks threads to collect per-thread
 121 // memory recorders at NMT sync point
 122 class SyncThreadRecorderClosure : public ThreadClosure {
 123  private:
 124   int _thread_count;
 125 
 126  public:
 127   SyncThreadRecorderClosure() {
 128     _thread_count =0;
 129   }
 130 
 131   void do_thread(Thread* thread);


src/share/vm/services/memTracker.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File