src/hotspot/share/gc/shenandoah/shenandoahJfrSupport.hpp
author stefank
Tue, 26 Nov 2019 10:47:46 +0100
changeset 59290 97d13893ec3c
parent 54956 43340a79840d
permissions -rw-r--r--
8234748: Clean up atomic and orderAccess includes Reviewed-by: dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
54956
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
     1
/*
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
     2
 * Copyright (c) 2019, Red Hat, Inc. All rights reserved.
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
     3
 *
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
     4
 * This code is free software; you can redistribute it and/or modify it
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
     5
 * under the terms of the GNU General Public License version 2 only, as
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
     6
 * published by the Free Software Foundation.
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
     7
 *
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
     8
 * This code is distributed in the hope that it will be useful, but WITHOUT
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
     9
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    10
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    11
 * version 2 for more details (a copy is included in the LICENSE file that
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    12
 * accompanied this code).
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    13
 *
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License version
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    15
 * 2 along with this work; if not, write to the Free Software Foundation,
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    16
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    17
 *
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    18
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    19
 * or visit www.oracle.com if you need additional information or have any
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    20
 * questions.
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    21
 *
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    22
 */
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    23
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    24
#ifndef SHARE_GC_SHENANDOAH_SHENANDOAHJFRSUPPORT_HPP
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    25
#define SHARE_GC_SHENANDOAH_SHENANDOAHJFRSUPPORT_HPP
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    26
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    27
#include "runtime/vmOperations.hpp"
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    28
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    29
class VM_ShenandoahSendHeapRegionInfoEvents : public VM_Operation {
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    30
public:
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    31
  virtual void doit();
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    32
  virtual VMOp_Type type() const { return VMOp_HeapIterateOperation; }
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    33
};
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    34
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    35
class ShenandoahJFRSupport {
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    36
public:
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    37
  static void register_jfr_type_serializers();
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    38
};
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    39
43340a79840d 8221507: Implement JFR Events for Shenandoah
kdobson
parents:
diff changeset
    40
#endif // SHARE_VM_GC_SHENANDOAH_SHENANDOAHJFRSUPPORT_HPP