8254723: add diagnostic command to write Linux perf map file

Reviewed-by: ysuenaga, sspitsyn
This commit is contained in:
Nick Gasson 2020-11-03 01:37:57 +00:00
parent f97ec359ec
commit 50357d136a
8 changed files with 170 additions and 2 deletions

View file

@ -478,6 +478,12 @@ void before_exit(JavaThread* thread) {
BytecodeHistogram::print();
}
#ifdef LINUX
if (DumpPerfMapAtExit) {
CodeCache::write_perf_map();
}
#endif
if (JvmtiExport::should_post_thread_life()) {
JvmtiExport::post_thread_end(thread);
}