src/hotspot/share/jfr/recorder/service/jfrPostBox.hpp
branchJEP-349-branch
changeset 58854 a79e68ec829a
parent 57360 5d043a159d5c
equal deleted inserted replaced
58853:4c036608ca8b 58854:a79e68ec829a
    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_FLUSHPOINT,
    45   MSG_FLUSHPOINT_METADATA,
       
    46   MSG_NO_OF_MSGS
    45   MSG_NO_OF_MSGS
    47 };
    46 };
    48 
    47 
    49 /**
    48 /**
    50  *  Jfr messaging.
    49  *  Jfr messaging.
    53  *
    52  *
    54  *  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
    55  *  MSG_START(1)            ; MSGBIT(MSG_START) == (1 << 0x1) == 0x2
    54  *  MSG_START(1)            ; MSGBIT(MSG_START) == (1 << 0x1) == 0x2
    56  *  MSG_STOP (2)            ; MSGBIT(MSG_STOP) == (1 << 0x2) == 0x4
    55  *  MSG_STOP (2)            ; MSGBIT(MSG_STOP) == (1 << 0x2) == 0x4
    57  *  MSG_ROTATE (3)          ; MSGBIT(MSG_ROTATE) == (1 << 0x3) == 0x8
    56  *  MSG_ROTATE (3)          ; MSGBIT(MSG_ROTATE) == (1 << 0x3) == 0x8
    58  *  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
    59  *
    59  *
    60  *  Asynchronous messages (posting thread returns immediately upon deposit):
    60  *  Asynchronous messages (posting thread returns immediately upon deposit):
    61  *
    61  *
    62  *  MSG_FULLBUFFER (4)      ; MSGBIT(MSG_FULLBUFFER) == (1 << 0x4) == 0x10
    62  *  MSG_FULLBUFFER (4)      ; MSGBIT(MSG_FULLBUFFER) == (1 << 0x4) == 0x10
    63  *  MSG_CHECKPOINT (5)      ; MSGBIT(CHECKPOINT) == (1 << 5) == 0x20
    63  *  MSG_CHECKPOINT (5)      ; MSGBIT(CHECKPOINT) == (1 << 0x5) == 0x20
    64  *  MSG_WAKEUP (6)          ; MSGBIT(WAKEUP) == (1 << 6) == 0x40
    64  *  MSG_WAKEUP (6)          ; MSGBIT(WAKEUP) == (1 << 0x6) == 0x40
    65  *  MSG_SHUTDOWN (7)        ; MSGBIT(MSG_SHUTDOWN) == (1 << 7) == 0x80
    65  *  MSG_SHUTDOWN (7)        ; MSGBIT(MSG_SHUTDOWN) == (1 << 0x7) == 0x80
    66  *  MSG_DEADBUFFER (9)      ; MSGBIT(MSG_DEADBUFFER) == (1 << 9) == 0x200
    66  *  MSG_DEADBUFFER (9)      ; MSGBIT(MSG_DEADBUFFER) == (1 << 0x9) == 0x200
    67  */
    67  */
    68 
    68 
    69 class JfrPostBox : public JfrCHeapObj {
    69 class JfrPostBox : public JfrCHeapObj {
    70   friend class JfrRecorder;
    70   friend class JfrRecorder;
    71  public:
    71  public: