src/share/vm/services/gcNotifier.hpp

Print this page




  43     next = NULL;
  44     timestamp = ts;
  45     gcManager = manager;
  46     gcAction = action;
  47     gcCause = cause;
  48     gcStatInfo = info;
  49   }
  50 
  51   ~GCNotificationRequest() {
  52     delete gcStatInfo;
  53   }
  54 };
  55 
  56 class GCNotifier : public AllStatic {
  57   friend class ServiceThread;
  58 private:
  59   static GCNotificationRequest *first_request;
  60   static GCNotificationRequest *last_request;
  61   static void addRequest(GCNotificationRequest *request);
  62   static GCNotificationRequest *getRequest();

  63 public:
  64   static void pushNotification(GCMemoryManager *manager, const char *action, const char *cause);
  65   static bool has_event();
  66   static void sendNotification(TRAPS);
  67 };
  68 
  69 #endif // SHARE_VM_SERVICES_GCNOTIFIER_HPP


  43     next = NULL;
  44     timestamp = ts;
  45     gcManager = manager;
  46     gcAction = action;
  47     gcCause = cause;
  48     gcStatInfo = info;
  49   }
  50 
  51   ~GCNotificationRequest() {
  52     delete gcStatInfo;
  53   }
  54 };
  55 
  56 class GCNotifier : public AllStatic {
  57   friend class ServiceThread;
  58 private:
  59   static GCNotificationRequest *first_request;
  60   static GCNotificationRequest *last_request;
  61   static void addRequest(GCNotificationRequest *request);
  62   static GCNotificationRequest *getRequest();
  63   static void sendNotificationInternal(TRAPS);
  64 public:
  65   static void pushNotification(GCMemoryManager *manager, const char *action, const char *cause);
  66   static bool has_event();
  67   static void sendNotification(TRAPS);
  68 };
  69 
  70 #endif // SHARE_VM_SERVICES_GCNOTIFIER_HPP