We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89f2d14 commit 0562caaCopy full SHA for 0562caa
src/hotspot/share/jfr/recorder/service/jfrRecorderService.cpp
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2020, 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
@@ -671,7 +671,9 @@ void JfrRecorderService::invoke_flush() {
671
672
void JfrRecorderService::flushpoint() {
673
MutexLocker lock(JfrStream_lock, Mutex::_no_safepoint_check_flag);
674
- invoke_flush();
+ if (_chunkwriter.is_valid()) {
675
+ invoke_flush();
676
+ }
677
}
678
679
void JfrRecorderService::process_full_buffers() {
0 commit comments