equal
deleted
inserted
replaced
165 return _chunkwriter->close(); |
165 return _chunkwriter->close(); |
166 } |
166 } |
167 |
167 |
168 void JfrRepository::flush(bool metadata, JavaThread* jt) { |
168 void JfrRepository::flush(bool metadata, JavaThread* jt) { |
169 DEBUG_ONLY(JfrJavaSupport::check_java_thread_in_vm(jt)); |
169 DEBUG_ONLY(JfrJavaSupport::check_java_thread_in_vm(jt)); |
170 assert(Jfr::is_recording(), "invariant"); |
170 if (!Jfr::is_recording()) { |
|
171 return; |
|
172 } |
171 if (!_chunkwriter->is_valid()) { |
173 if (!_chunkwriter->is_valid()) { |
172 return; |
174 return; |
173 } |
175 } |
174 instance()._post_box.post((metadata || !_chunkwriter->has_metadata()) ? MSG_FLUSHPOINT_METADATA : MSG_FLUSHPOINT); |
176 instance()._post_box.post((metadata || !_chunkwriter->has_metadata()) ? MSG_FLUSHPOINT_METADATA : MSG_FLUSHPOINT); |
175 } |
177 } |