author | egahlin |
Thu, 21 Jun 2018 20:52:52 +0200 | |
changeset 50703 | 0486d7749b8d |
parent 50113 | caf115bb98ad |
child 53244 | 9807daeb47c4 |
permissions | -rw-r--r-- |
50113 | 1 |
/* |
2 |
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
22 |
* |
|
23 |
*/ |
|
24 |
#ifndef SHARE_VM_JFR_CHECKPOINT_TYPES_JFRTYPEMANAGER_HPP |
|
25 |
#define SHARE_VM_JFR_CHECKPOINT_TYPES_JFRTYPEMANAGER_HPP |
|
26 |
||
27 |
#include "jfr/utilities/jfrAllocation.hpp" |
|
50703
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50113
diff
changeset
|
28 |
|
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50113
diff
changeset
|
29 |
class JavaThread; |
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50113
diff
changeset
|
30 |
class JfrCheckpointWriter; |
50113 | 31 |
|
50703
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50113
diff
changeset
|
32 |
class JfrTypeManager : public AllStatic { |
50113 | 33 |
public: |
50703
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50113
diff
changeset
|
34 |
static bool initialize(); |
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50113
diff
changeset
|
35 |
static void clear(); |
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50113
diff
changeset
|
36 |
static void write_types(JfrCheckpointWriter& writer); |
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50113
diff
changeset
|
37 |
static void write_safepoint_types(JfrCheckpointWriter& writer); |
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50113
diff
changeset
|
38 |
static void write_type_set(); |
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50113
diff
changeset
|
39 |
static void write_type_set_for_unloaded_classes(); |
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50113
diff
changeset
|
40 |
static void create_thread_checkpoint(JavaThread* jt); |
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50113
diff
changeset
|
41 |
static void write_thread_checkpoint(JavaThread* jt); |
50113 | 42 |
}; |
43 |
||
44 |
#endif // SHARE_VM_JFR_CHECKPOINT_TYPES_JFRTYPEMANAGER_HPP |