equal
deleted
inserted
replaced
133 void JfrRepository::set_chunk_path(jstring path, JavaThread* jt) { |
133 void JfrRepository::set_chunk_path(jstring path, JavaThread* jt) { |
134 DEBUG_ONLY(JfrJavaSupport::check_java_thread_in_vm(jt)); |
134 DEBUG_ONLY(JfrJavaSupport::check_java_thread_in_vm(jt)); |
135 ResourceMark rm(jt); |
135 ResourceMark rm(jt); |
136 const char* const canonical_chunk_path = JfrJavaSupport::c_str(path, jt); |
136 const char* const canonical_chunk_path = JfrJavaSupport::c_str(path, jt); |
137 { |
137 { |
138 MutexLockerEx stream_lock(JfrStream_lock, Mutex::_no_safepoint_check_flag); |
138 MutexLocker stream_lock(JfrStream_lock, Mutex::_no_safepoint_check_flag); |
139 if (NULL == canonical_chunk_path && !_chunkwriter->is_valid()) { |
139 if (NULL == canonical_chunk_path && !_chunkwriter->is_valid()) { |
140 // new output is NULL and current output is NULL |
140 // new output is NULL and current output is NULL |
141 return; |
141 return; |
142 } |
142 } |
143 instance().set_chunk_path(canonical_chunk_path); |
143 instance().set_chunk_path(canonical_chunk_path); |