author | egahlin |
Fri, 17 May 2019 16:02:27 +0200 | |
branch | JEP-349-branch |
changeset 57360 | 5d043a159d5c |
parent 52212 | e6973df15152 |
child 57870 | 00860d9caf4d |
permissions | -rw-r--r-- |
50113 | 1 |
/* |
57360 | 2 |
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. |
50113 | 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 |
||
25 |
#include "precompiled.hpp" |
|
26 |
#include "classfile/javaClasses.inline.hpp" |
|
27 |
#include "jfr/recorder/jfrRecorder.hpp" |
|
28 |
#include "jfr/recorder/checkpoint/jfrCheckpointManager.hpp" |
|
29 |
#include "jfr/recorder/checkpoint/jfrCheckpointWriter.hpp" |
|
30 |
#include "jfr/recorder/checkpoint/types/jfrTypeManager.hpp" |
|
31 |
#include "jfr/recorder/checkpoint/types/traceid/jfrTraceIdEpoch.hpp" |
|
32 |
#include "jfr/recorder/service/jfrOptionSet.hpp" |
|
33 |
#include "jfr/recorder/storage/jfrMemorySpace.inline.hpp" |
|
34 |
#include "jfr/recorder/storage/jfrStorageUtils.inline.hpp" |
|
35 |
#include "jfr/recorder/repository/jfrChunkWriter.hpp" |
|
36 |
#include "jfr/utilities/jfrBigEndian.hpp" |
|
57360 | 37 |
#include "jfr/utilities/jfrIterator.hpp" |
38 |
#include "jfr/utilities/jfrThreadIterator.hpp" |
|
50113 | 39 |
#include "jfr/utilities/jfrTypes.hpp" |
57360 | 40 |
#include "jfr/writers/jfrJavaEventWriter.hpp" |
50113 | 41 |
#include "logging/log.hpp" |
42 |
#include "memory/resourceArea.hpp" |
|
57360 | 43 |
#include "runtime/handles.inline.hpp" |
50113 | 44 |
#include "runtime/mutexLocker.hpp" |
50429
83aec1d357d4
8204301: Make OrderAccess functions available to hpp rather than inline.hpp files
coleenp
parents:
50117
diff
changeset
|
45 |
#include "runtime/orderAccess.hpp" |
50117
fb66b2959eaf
8203251: Non-PCH build failed after JDK-8199712 (Flight Recorder)
shade
parents:
50113
diff
changeset
|
46 |
#include "runtime/os.inline.hpp" |
50113 | 47 |
#include "runtime/safepoint.hpp" |
48 |
||
49 |
typedef JfrCheckpointManager::Buffer* BufferPtr; |
|
50 |
||
51 |
static JfrCheckpointManager* _instance = NULL; |
|
52 |
||
53 |
JfrCheckpointManager& JfrCheckpointManager::instance() { |
|
54 |
return *_instance; |
|
55 |
} |
|
56 |
||
57 |
JfrCheckpointManager* JfrCheckpointManager::create(JfrChunkWriter& cw) { |
|
58 |
assert(_instance == NULL, "invariant"); |
|
59 |
_instance = new JfrCheckpointManager(cw); |
|
60 |
return _instance; |
|
61 |
} |
|
62 |
||
63 |
void JfrCheckpointManager::destroy() { |
|
64 |
assert(_instance != NULL, "invariant"); |
|
65 |
delete _instance; |
|
66 |
_instance = NULL; |
|
67 |
} |
|
68 |
||
69 |
JfrCheckpointManager::JfrCheckpointManager(JfrChunkWriter& cw) : |
|
70 |
_free_list_mspace(NULL), |
|
71 |
_epoch_transition_mspace(NULL), |
|
72 |
_lock(NULL), |
|
73 |
_service_thread(NULL), |
|
74 |
_chunkwriter(cw), |
|
75 |
_checkpoint_epoch_state(JfrTraceIdEpoch::epoch()) {} |
|
76 |
||
77 |
JfrCheckpointManager::~JfrCheckpointManager() { |
|
78 |
if (_free_list_mspace != NULL) { |
|
79 |
delete _free_list_mspace; |
|
80 |
} |
|
81 |
if (_epoch_transition_mspace != NULL) { |
|
82 |
delete _epoch_transition_mspace; |
|
83 |
} |
|
84 |
if (_lock != NULL) { |
|
85 |
delete _lock; |
|
86 |
} |
|
50703
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50429
diff
changeset
|
87 |
JfrTypeManager::clear(); |
50113 | 88 |
} |
89 |
||
90 |
static const size_t unlimited_mspace_size = 0; |
|
91 |
static const size_t checkpoint_buffer_cache_count = 2; |
|
92 |
static const size_t checkpoint_buffer_size = 512 * K; |
|
93 |
||
94 |
static JfrCheckpointMspace* create_mspace(size_t buffer_size, size_t limit, size_t cache_count, JfrCheckpointManager* system) { |
|
95 |
JfrCheckpointMspace* mspace = new JfrCheckpointMspace(buffer_size, limit, cache_count, system); |
|
96 |
if (mspace != NULL) { |
|
97 |
mspace->initialize(); |
|
98 |
} |
|
99 |
return mspace; |
|
100 |
} |
|
101 |
||
102 |
bool JfrCheckpointManager::initialize() { |
|
103 |
assert(_free_list_mspace == NULL, "invariant"); |
|
104 |
_free_list_mspace = create_mspace(checkpoint_buffer_size, unlimited_mspace_size, checkpoint_buffer_cache_count, this); |
|
105 |
if (_free_list_mspace == NULL) { |
|
106 |
return false; |
|
107 |
} |
|
108 |
assert(_epoch_transition_mspace == NULL, "invariant"); |
|
109 |
_epoch_transition_mspace = create_mspace(checkpoint_buffer_size, unlimited_mspace_size, checkpoint_buffer_cache_count, this); |
|
110 |
if (_epoch_transition_mspace == NULL) { |
|
111 |
return false; |
|
112 |
} |
|
50703
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50429
diff
changeset
|
113 |
assert(_lock == NULL, "invariant"); |
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50429
diff
changeset
|
114 |
_lock = new Mutex(Monitor::leaf - 1, "Checkpoint mutex", Mutex::_allow_vm_block_flag, Monitor::_safepoint_check_never); |
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50429
diff
changeset
|
115 |
if (_lock == NULL) { |
50113 | 116 |
return false; |
117 |
} |
|
50703
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50429
diff
changeset
|
118 |
return JfrTypeManager::initialize(); |
50113 | 119 |
} |
120 |
||
121 |
bool JfrCheckpointManager::use_epoch_transition_mspace(const Thread* thread) const { |
|
122 |
return _service_thread != thread && OrderAccess::load_acquire(&_checkpoint_epoch_state) != JfrTraceIdEpoch::epoch(); |
|
123 |
} |
|
124 |
||
125 |
void JfrCheckpointManager::synchronize_epoch() { |
|
126 |
assert(_checkpoint_epoch_state != JfrTraceIdEpoch::epoch(), "invariant"); |
|
127 |
OrderAccess::storestore(); |
|
128 |
_checkpoint_epoch_state = JfrTraceIdEpoch::epoch(); |
|
129 |
} |
|
130 |
||
131 |
void JfrCheckpointManager::shift_epoch() { |
|
132 |
debug_only(const u1 current_epoch = JfrTraceIdEpoch::current();) |
|
133 |
JfrTraceIdEpoch::shift_epoch(); |
|
134 |
assert(current_epoch != JfrTraceIdEpoch::current(), "invariant"); |
|
135 |
} |
|
136 |
||
137 |
void JfrCheckpointManager::register_service_thread(const Thread* thread) { |
|
138 |
_service_thread = thread; |
|
139 |
} |
|
140 |
||
141 |
void JfrCheckpointManager::register_full(BufferPtr t, Thread* thread) { |
|
142 |
// nothing here at the moment |
|
57360 | 143 |
assert(t != NULL, "invariant"); |
144 |
assert(t->acquired_by(thread), "invariant"); |
|
50113 | 145 |
assert(t->retired(), "invariant"); |
146 |
} |
|
147 |
||
148 |
void JfrCheckpointManager::lock() { |
|
149 |
assert(!_lock->owned_by_self(), "invariant"); |
|
150 |
_lock->lock_without_safepoint_check(); |
|
151 |
} |
|
152 |
||
153 |
void JfrCheckpointManager::unlock() { |
|
154 |
_lock->unlock(); |
|
155 |
} |
|
156 |
||
157 |
#ifdef ASSERT |
|
158 |
||
159 |
bool JfrCheckpointManager::is_locked() const { |
|
160 |
return _lock->owned_by_self(); |
|
161 |
} |
|
162 |
||
163 |
static void assert_free_lease(const BufferPtr buffer) { |
|
164 |
assert(buffer != NULL, "invariant"); |
|
165 |
assert(buffer->acquired_by_self(), "invariant"); |
|
166 |
assert(buffer->lease(), "invariant"); |
|
167 |
} |
|
168 |
||
169 |
static void assert_release(const BufferPtr buffer) { |
|
170 |
assert(buffer != NULL, "invariant"); |
|
171 |
assert(buffer->lease(), "invariant"); |
|
172 |
assert(buffer->acquired_by_self(), "invariant"); |
|
173 |
} |
|
174 |
||
175 |
#endif // ASSERT |
|
176 |
||
177 |
static BufferPtr lease_free(size_t size, JfrCheckpointMspace* mspace, size_t retry_count, Thread* thread) { |
|
178 |
static const size_t max_elem_size = mspace->min_elem_size(); // min is max |
|
179 |
BufferPtr buffer; |
|
180 |
if (size <= max_elem_size) { |
|
181 |
BufferPtr buffer = mspace_get_free_lease_with_retry(size, mspace, retry_count, thread); |
|
182 |
if (buffer != NULL) { |
|
183 |
DEBUG_ONLY(assert_free_lease(buffer);) |
|
184 |
return buffer; |
|
185 |
} |
|
186 |
} |
|
187 |
buffer = mspace_allocate_transient_lease_to_free(size, mspace, thread); |
|
188 |
DEBUG_ONLY(assert_free_lease(buffer);) |
|
189 |
return buffer; |
|
190 |
} |
|
191 |
||
192 |
static const size_t lease_retry = 10; |
|
193 |
||
194 |
BufferPtr JfrCheckpointManager::lease_buffer(Thread* thread, size_t size /* 0 */) { |
|
195 |
JfrCheckpointManager& manager = instance(); |
|
196 |
if (manager.use_epoch_transition_mspace(thread)) { |
|
197 |
return lease_free(size, manager._epoch_transition_mspace, lease_retry, thread); |
|
198 |
} |
|
199 |
return lease_free(size, manager._free_list_mspace, lease_retry, thread); |
|
200 |
} |
|
201 |
||
202 |
/* |
|
203 |
* If the buffer was a "lease" from the free list, release back. |
|
204 |
* |
|
205 |
* The buffer is effectively invalidated for the thread post-return, |
|
206 |
* and the caller should take means to ensure that it is not referenced. |
|
207 |
*/ |
|
208 |
static void release(BufferPtr const buffer, Thread* thread) { |
|
209 |
DEBUG_ONLY(assert_release(buffer);) |
|
210 |
buffer->clear_lease(); |
|
211 |
buffer->release(); |
|
212 |
} |
|
213 |
||
214 |
BufferPtr JfrCheckpointManager::flush(BufferPtr old, size_t used, size_t requested, Thread* thread) { |
|
215 |
assert(old != NULL, "invariant"); |
|
216 |
assert(old->lease(), "invariant"); |
|
217 |
if (0 == requested) { |
|
218 |
// indicates a lease is being returned |
|
219 |
release(old, thread); |
|
220 |
return NULL; |
|
221 |
} |
|
222 |
// migration of in-flight information |
|
223 |
BufferPtr const new_buffer = lease_buffer(thread, used + requested); |
|
224 |
if (new_buffer != NULL) { |
|
225 |
migrate_outstanding_writes(old, new_buffer, used, requested); |
|
226 |
} |
|
227 |
release(old, thread); |
|
228 |
return new_buffer; // might be NULL |
|
229 |
} |
|
230 |
||
231 |
// offsets into the JfrCheckpointEntry |
|
232 |
static const juint starttime_offset = sizeof(jlong); |
|
233 |
static const juint duration_offset = starttime_offset + sizeof(jlong); |
|
234 |
static const juint flushpoint_offset = duration_offset + sizeof(jlong); |
|
235 |
static const juint types_offset = flushpoint_offset + sizeof(juint); |
|
236 |
static const juint payload_offset = types_offset + sizeof(juint); |
|
237 |
||
238 |
template <typename Return> |
|
239 |
static Return read_data(const u1* data) { |
|
240 |
return JfrBigEndian::read<Return>(data); |
|
241 |
} |
|
242 |
||
243 |
static jlong total_size(const u1* data) { |
|
244 |
return read_data<jlong>(data); |
|
245 |
} |
|
246 |
||
247 |
static jlong starttime(const u1* data) { |
|
248 |
return read_data<jlong>(data + starttime_offset); |
|
249 |
} |
|
250 |
||
251 |
static jlong duration(const u1* data) { |
|
252 |
return read_data<jlong>(data + duration_offset); |
|
253 |
} |
|
254 |
||
255 |
static bool is_flushpoint(const u1* data) { |
|
256 |
return read_data<juint>(data + flushpoint_offset) == (juint)1; |
|
257 |
} |
|
258 |
||
259 |
static juint number_of_types(const u1* data) { |
|
260 |
return read_data<juint>(data + types_offset); |
|
261 |
} |
|
262 |
||
263 |
static void write_checkpoint_header(JfrChunkWriter& cw, intptr_t offset_prev_cp_event, const u1* data) { |
|
264 |
cw.reserve(sizeof(u4)); |
|
265 |
cw.write((u8)EVENT_CHECKPOINT); |
|
266 |
cw.write(starttime(data)); |
|
267 |
cw.write(duration(data)); |
|
268 |
cw.write((jlong)offset_prev_cp_event); |
|
269 |
cw.write(is_flushpoint(data)); |
|
270 |
cw.write(number_of_types(data)); |
|
271 |
} |
|
272 |
||
273 |
static void write_checkpoint_content(JfrChunkWriter& cw, const u1* data, size_t size) { |
|
274 |
assert(data != NULL, "invariant"); |
|
275 |
cw.write_unbuffered(data + payload_offset, size); |
|
276 |
} |
|
277 |
||
278 |
static size_t write_checkpoint_event(JfrChunkWriter& cw, const u1* data) { |
|
279 |
assert(data != NULL, "invariant"); |
|
57360 | 280 |
const int64_t last_checkpoint_event = cw.last_checkpoint_offset(); |
281 |
const int64_t event_begin = cw.current_offset(); |
|
282 |
const int64_t offset_to_last_checkpoint_event = 0 == last_checkpoint_event ? 0 : last_checkpoint_event - event_begin; |
|
283 |
const int64_t total_checkpoint_size = total_size(data); |
|
284 |
write_checkpoint_header(cw, offset_to_last_checkpoint_event, data); |
|
50113 | 285 |
write_checkpoint_content(cw, data, total_checkpoint_size - sizeof(JfrCheckpointEntry)); |
57360 | 286 |
const int64_t checkpoint_event_size = cw.current_offset() - event_begin; |
50113 | 287 |
cw.write_padded_at_offset<u4>(checkpoint_event_size, event_begin); |
57360 | 288 |
cw.set_last_checkpoint_offset(event_begin); |
50113 | 289 |
return (size_t)total_checkpoint_size; |
290 |
} |
|
291 |
||
292 |
static size_t write_checkpoints(JfrChunkWriter& cw, const u1* data, size_t size) { |
|
293 |
assert(cw.is_valid(), "invariant"); |
|
294 |
assert(data != NULL, "invariant"); |
|
295 |
assert(size > 0, "invariant"); |
|
296 |
const u1* const limit = data + size; |
|
297 |
const u1* next_entry = data; |
|
298 |
size_t processed = 0; |
|
299 |
while (next_entry < limit) { |
|
300 |
const size_t checkpoint_size = write_checkpoint_event(cw, next_entry); |
|
301 |
processed += checkpoint_size; |
|
302 |
next_entry += checkpoint_size; |
|
303 |
} |
|
304 |
assert(next_entry == limit, "invariant"); |
|
305 |
return processed; |
|
306 |
} |
|
307 |
||
308 |
template <typename T> |
|
309 |
class CheckpointWriteOp { |
|
310 |
private: |
|
311 |
JfrChunkWriter& _writer; |
|
312 |
size_t _processed; |
|
313 |
public: |
|
314 |
typedef T Type; |
|
315 |
CheckpointWriteOp(JfrChunkWriter& writer) : _writer(writer), _processed(0) {} |
|
316 |
bool write(Type* t, const u1* data, size_t size) { |
|
317 |
_processed += write_checkpoints(_writer, data, size); |
|
318 |
return true; |
|
319 |
} |
|
320 |
size_t processed() const { return _processed; } |
|
321 |
}; |
|
322 |
||
323 |
typedef CheckpointWriteOp<JfrCheckpointMspace::Type> WriteOperation; |
|
324 |
typedef MutexedWriteOp<WriteOperation> MutexedWriteOperation; |
|
325 |
typedef ReleaseOp<JfrCheckpointMspace> CheckpointReleaseOperation; |
|
326 |
typedef CompositeOperation<MutexedWriteOperation, CheckpointReleaseOperation> CheckpointWriteOperation; |
|
327 |
||
328 |
static size_t write_mspace_exclusive(JfrCheckpointMspace* mspace, JfrChunkWriter& chunkwriter) { |
|
329 |
Thread* const thread = Thread::current(); |
|
330 |
WriteOperation wo(chunkwriter); |
|
331 |
MutexedWriteOperation mwo(wo); |
|
332 |
CheckpointReleaseOperation cro(mspace, thread, false); |
|
333 |
CheckpointWriteOperation cpwo(&mwo, &cro); |
|
334 |
assert(mspace->is_full_empty(), "invariant"); |
|
335 |
process_free_list(cpwo, mspace); |
|
336 |
return wo.processed(); |
|
337 |
} |
|
338 |
||
339 |
size_t JfrCheckpointManager::write() { |
|
340 |
const size_t processed = write_mspace_exclusive(_free_list_mspace, _chunkwriter); |
|
341 |
synchronize_epoch(); |
|
342 |
return processed; |
|
343 |
} |
|
344 |
||
57360 | 345 |
typedef StopOnEmptyIterator<JfrDoublyLinkedList<JfrBuffer> > EmptyIterator; |
346 |
||
347 |
template <typename Processor> |
|
348 |
static void process_transition_mspace(Processor& processor, JfrCheckpointMspace* mspace) { |
|
349 |
assert(mspace->is_full_empty(), "invariant"); |
|
350 |
process_free_list_iterator_control<Processor, JfrCheckpointMspace, EmptyIterator>(processor, mspace, forward); |
|
351 |
} |
|
352 |
||
353 |
size_t JfrCheckpointManager::flush() { |
|
354 |
WriteOperation wo(_chunkwriter); |
|
355 |
MutexedWriteOperation mwo(wo); |
|
356 |
process_transition_mspace(mwo, _epoch_transition_mspace); |
|
357 |
assert(_free_list_mspace->is_full_empty(), "invariant"); |
|
358 |
process_free_list(mwo, _free_list_mspace); |
|
359 |
return wo.processed(); |
|
360 |
} |
|
361 |
||
362 |
size_t JfrCheckpointManager::write_constants() { |
|
363 |
write_types(); |
|
364 |
return flush(); |
|
365 |
} |
|
366 |
||
50113 | 367 |
size_t JfrCheckpointManager::write_epoch_transition_mspace() { |
57360 | 368 |
Thread* const thread = Thread::current(); |
369 |
WriteOperation wo(_chunkwriter); |
|
370 |
MutexedWriteOperation mwo(wo); |
|
371 |
CheckpointReleaseOperation cro(_epoch_transition_mspace, thread, false); |
|
372 |
CheckpointWriteOperation cpwo(&mwo, &cro); |
|
373 |
process_transition_mspace(cpwo, _epoch_transition_mspace); |
|
374 |
return wo.processed(); |
|
50113 | 375 |
} |
376 |
||
377 |
typedef DiscardOp<DefaultDiscarder<JfrBuffer> > DiscardOperation; |
|
378 |
size_t JfrCheckpointManager::clear() { |
|
379 |
DiscardOperation discarder(mutexed); // mutexed discard mode |
|
380 |
process_free_list(discarder, _free_list_mspace); |
|
381 |
process_free_list(discarder, _epoch_transition_mspace); |
|
382 |
synchronize_epoch(); |
|
57360 | 383 |
return discarder.elements(); |
50113 | 384 |
} |
385 |
||
386 |
size_t JfrCheckpointManager::write_types() { |
|
57360 | 387 |
ResourceMark rm; |
388 |
HandleMark hm; |
|
50113 | 389 |
JfrCheckpointWriter writer(false, true, Thread::current()); |
50703
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50429
diff
changeset
|
390 |
JfrTypeManager::write_types(writer); |
50113 | 391 |
return writer.used_size(); |
392 |
} |
|
393 |
||
57360 | 394 |
class JfrNotifyClosure : public ThreadClosure { |
395 |
public: |
|
396 |
void do_thread(Thread* t) { |
|
397 |
assert(t != NULL, "invariant"); |
|
398 |
assert(t->is_Java_thread(), "invariant"); |
|
399 |
assert_locked_or_safepoint(Threads_lock); |
|
400 |
JfrJavaEventWriter::notify((JavaThread*)t); |
|
401 |
} |
|
402 |
}; |
|
403 |
||
404 |
void JfrCheckpointManager::notify_threads() { |
|
405 |
assert(SafepointSynchronize::is_at_safepoint(), "invariant"); |
|
406 |
JfrNotifyClosure tc; |
|
407 |
JfrJavaThreadIterator iter; |
|
408 |
while (iter.has_next()) { |
|
409 |
tc.do_thread(iter.next()); |
|
410 |
} |
|
411 |
} |
|
412 |
||
413 |
void JfrCheckpointManager::notify_types_on_rotation() { |
|
414 |
JfrTypeManager::notify_types_on_rotation(); |
|
50113 | 415 |
} |
416 |
||
417 |
void JfrCheckpointManager::write_type_set() { |
|
50703
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50429
diff
changeset
|
418 |
JfrTypeManager::write_type_set(); |
50113 | 419 |
} |
420 |
||
421 |
void JfrCheckpointManager::write_type_set_for_unloaded_classes() { |
|
52212
e6973df15152
8212663: Remove conservative at_safepoint assert when JFR writes type sets during class unloading
eosterlund
parents:
50703
diff
changeset
|
422 |
assert_locked_or_safepoint(ClassLoaderDataGraph_lock); |
50703
0486d7749b8d
8205053: Decouple type registration from framework lifecycle
egahlin
parents:
50429
diff
changeset
|
423 |
JfrTypeManager::write_type_set_for_unloaded_classes(); |
50113 | 424 |
} |
425 |
||
57360 | 426 |
size_t JfrCheckpointManager::flush_type_set() { |
427 |
const size_t elements = JfrTypeManager::flush_type_set(); |
|
428 |
flush(); |
|
429 |
return elements; |
|
50113 | 430 |
} |
431 |
||
57360 | 432 |
void JfrCheckpointManager::create_thread_checkpoint(Thread* t) { |
433 |
JfrTypeManager::create_thread_checkpoint(t); |
|
50113 | 434 |
} |
57360 | 435 |
|
436 |
void JfrCheckpointManager::write_thread_checkpoint(Thread* t) { |
|
437 |
JfrTypeManager::write_thread_checkpoint(t); |
|
438 |
} |