src/hotspot/share/jfr/recorder/service/jfrPostBox.hpp
changeset 58863 c16ac7a2eba4
parent 53244 9807daeb47c4
equal deleted inserted replaced
58861:2c3cc4b01880 58863:c16ac7a2eba4
    39   MSG_CHECKPOINT,
    39   MSG_CHECKPOINT,
    40   MSG_WAKEUP,
    40   MSG_WAKEUP,
    41   MSG_SHUTDOWN,
    41   MSG_SHUTDOWN,
    42   MSG_VM_ERROR,
    42   MSG_VM_ERROR,
    43   MSG_DEADBUFFER,
    43   MSG_DEADBUFFER,
       
    44   MSG_FLUSHPOINT,
    44   MSG_NO_OF_MSGS
    45   MSG_NO_OF_MSGS
    45 };
    46 };
    46 
    47 
    47 /**
    48 /**
    48  *  Jfr messaging.
    49  *  Jfr messaging.
    51  *
    52  *
    52  *  MSG_CLONE_IN_MEMORY (0) ; MSGBIT(MSG_CLONE_IN_MEMORY) == (1 << 0) == 0x1
    53  *  MSG_CLONE_IN_MEMORY (0) ; MSGBIT(MSG_CLONE_IN_MEMORY) == (1 << 0) == 0x1
    53  *  MSG_START(1)            ; MSGBIT(MSG_START) == (1 << 0x1) == 0x2
    54  *  MSG_START(1)            ; MSGBIT(MSG_START) == (1 << 0x1) == 0x2
    54  *  MSG_STOP (2)            ; MSGBIT(MSG_STOP) == (1 << 0x2) == 0x4
    55  *  MSG_STOP (2)            ; MSGBIT(MSG_STOP) == (1 << 0x2) == 0x4
    55  *  MSG_ROTATE (3)          ; MSGBIT(MSG_ROTATE) == (1 << 0x3) == 0x8
    56  *  MSG_ROTATE (3)          ; MSGBIT(MSG_ROTATE) == (1 << 0x3) == 0x8
    56  *  MSG_VM_ERROR (8)        ; MSGBIT(MSG_VM_ERROR) == (1 << 8) == 0x100
    57  *  MSG_VM_ERROR (8)        ; MSGBIT(MSG_VM_ERROR) == (1 << 0x8) == 0x100
       
    58  *  MSG_FLUSHPOINT (10)     ; MSGBIT(MSG_FLUSHPOINT) == (1 << 0xa) == 0x400
    57  *
    59  *
    58  *  Asynchronous messages (posting thread returns immediately upon deposit):
    60  *  Asynchronous messages (posting thread returns immediately upon deposit):
    59  *
    61  *
    60  *  MSG_FULLBUFFER (4)      ; MSGBIT(MSG_FULLBUFFER) == (1 << 0x4) == 0x10
    62  *  MSG_FULLBUFFER (4)      ; MSGBIT(MSG_FULLBUFFER) == (1 << 0x4) == 0x10
    61  *  MSG_CHECKPOINT (5)      ; MSGBIT(CHECKPOINT) == (1 << 5) == 0x20
    63  *  MSG_CHECKPOINT (5)      ; MSGBIT(CHECKPOINT) == (1 << 0x5) == 0x20
    62  *  MSG_WAKEUP (6)          ; MSGBIT(WAKEUP) == (1 << 6) == 0x40
    64  *  MSG_WAKEUP (6)          ; MSGBIT(WAKEUP) == (1 << 0x6) == 0x40
    63  *  MSG_SHUTDOWN (7)        ; MSGBIT(MSG_SHUTDOWN) == (1 << 7) == 0x80
    65  *  MSG_SHUTDOWN (7)        ; MSGBIT(MSG_SHUTDOWN) == (1 << 0x7) == 0x80
    64  *  MSG_DEADBUFFER (9)      ; MSGBIT(MSG_DEADBUFFER) == (1 << 9) == 0x200
    66  *  MSG_DEADBUFFER (9)      ; MSGBIT(MSG_DEADBUFFER) == (1 << 0x9) == 0x200
    65  */
    67  */
    66 
    68 
    67 class JfrPostBox : public JfrCHeapObj {
    69 class JfrPostBox : public JfrCHeapObj {
    68   friend class JfrRecorder;
    70   friend class JfrRecorder;
    69  public:
    71  public: