mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8254723: add diagnostic command to write Linux perf map file
Reviewed-by: ysuenaga, sspitsyn
This commit is contained in:
parent
f97ec359ec
commit
50357d136a
8 changed files with 170 additions and 2 deletions
|
@ -4635,6 +4635,12 @@ jint os::init_2(void) {
|
|||
set_coredump_filter(FILE_BACKED_SHARED_BIT);
|
||||
}
|
||||
|
||||
if (DumpPerfMapAtExit && FLAG_IS_DEFAULT(UseCodeCacheFlushing)) {
|
||||
// Disable code cache flushing to ensure the map file written at
|
||||
// exit contains all nmethods generated during execution.
|
||||
FLAG_SET_DEFAULT(UseCodeCacheFlushing, false);
|
||||
}
|
||||
|
||||
return JNI_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue