Mercurial > hg > graal-compiler
comparison src/share/vm/services/memTrackWorker.hpp @ 10408:836a62f43af9
Merge with http://hg.openjdk.java.net/hsx/hsx25/hotspot/
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 19 Jun 2013 10:45:56 +0200 |
parents | b80cc96882f7 |
children | 9758d9f36299 |
comparison
equal
deleted
inserted
replaced
10086:e0fb8a213650 | 10408:836a62f43af9 |
---|---|
30 #include "services/memRecorder.hpp" | 30 #include "services/memRecorder.hpp" |
31 | 31 |
32 // Maximum MAX_GENERATIONS generation data can be tracked. | 32 // Maximum MAX_GENERATIONS generation data can be tracked. |
33 #define MAX_GENERATIONS 512 | 33 #define MAX_GENERATIONS 512 |
34 | 34 |
35 class GenerationData : public _ValueObj { | 35 class GenerationData VALUE_OBJ_CLASS_SPEC { |
36 private: | 36 private: |
37 int _number_of_classes; | 37 int _number_of_classes; |
38 MemRecorder* _recorder_list; | 38 MemRecorder* _recorder_list; |
39 | 39 |
40 public: | 40 public: |
83 GenerationData _gen[MAX_GENERATIONS]; | 83 GenerationData _gen[MAX_GENERATIONS]; |
84 int _head, _tail; // head and tail pointers to above circular buffer | 84 int _head, _tail; // head and tail pointers to above circular buffer |
85 | 85 |
86 bool _has_error; | 86 bool _has_error; |
87 | 87 |
88 MemSnapshot* _snapshot; | |
89 | |
88 public: | 90 public: |
89 MemTrackWorker(); | 91 MemTrackWorker(MemSnapshot* snapshot); |
90 ~MemTrackWorker(); | 92 ~MemTrackWorker(); |
91 _NOINLINE_ void* operator new(size_t size); | 93 _NOINLINE_ void* operator new(size_t size); |
92 _NOINLINE_ void* operator new(size_t size, const std::nothrow_t& nothrow_constant); | 94 _NOINLINE_ void* operator new(size_t size, const std::nothrow_t& nothrow_constant); |
93 | 95 |
94 void start(); | 96 void start(); |