src/share/vm/services/memoryManager.hpp

changeset 2888
78542e2b5e35
parent 2314
f95d63e2154a
child 3471
bf864f701a4a
     1.1 --- a/src/share/vm/services/memoryManager.hpp	Wed May 11 13:19:53 2011 -0400
     1.2 +++ b/src/share/vm/services/memoryManager.hpp	Thu May 12 10:30:11 2011 -0700
     1.3 @@ -166,6 +166,7 @@
     1.4    Mutex*       _last_gc_lock;
     1.5    GCStatInfo*  _current_gc_stat;
     1.6    int          _num_gc_threads;
     1.7 +  volatile bool _notification_enabled;
     1.8  public:
     1.9    GCMemoryManager();
    1.10    ~GCMemoryManager();
    1.11 @@ -181,7 +182,7 @@
    1.12    void   gc_begin(bool recordGCBeginTime, bool recordPreGCUsage,
    1.13                    bool recordAccumulatedGCTime);
    1.14    void   gc_end(bool recordPostGCUsage, bool recordAccumulatedGCTime,
    1.15 -                bool recordGCEndTime, bool countCollection);
    1.16 +                bool recordGCEndTime, bool countCollection, GCCause::Cause cause);
    1.17  
    1.18    void        reset_gc_stat()   { _num_collections = 0; _accumulated_timer.reset(); }
    1.19  
    1.20 @@ -189,6 +190,8 @@
    1.21    // the collection count. Zero signifies no gc has taken place.
    1.22    size_t get_last_gc_stat(GCStatInfo* dest);
    1.23  
    1.24 +  void set_notification_enabled(bool enabled) { _notification_enabled = enabled; }
    1.25 +  bool is_notification_enabled() { return _notification_enabled; }
    1.26    virtual MemoryManager::Name kind() = 0;
    1.27  };
    1.28  

mercurial