RFR: 8368781: PerfMemory - make issues more transparent [v2]

Matthias Baesken mbaesken at openjdk.org
Fri Oct 10 11:30:01 UTC 2025


On Fri, 10 Oct 2025 09:14:41 GMT, Christoph Langer <clanger at openjdk.org> wrote:

> or change PrintMiscellaneous and Verbose to diagnostic flags such that they are available in product VMs.

Might be an option ;  PrintMiscellaneous  is used besides perfMemory also at some more places , e.g.  C2 JIT.
See below 


cpu/x86/vm_version_x86.cpp:1392:    if (supports_avx() && PrintMiscellaneous && Verbose && TraceNewVectors) {
os/posix/perfMemory_posix.cpp:74:    if (PrintMiscellaneous && Verbose) {
os/posix/perfMemory_posix.cpp:300:    if (PrintMiscellaneous && Verbose) {
os/posix/perfMemory_posix.cpp:374:    if (PrintMiscellaneous && Verbose) {
os/posix/perfMemory_posix.cpp:414:    if (PrintMiscellaneous && Verbose) {
os/posix/perfMemory_posix.cpp:421:    if (PrintMiscellaneous && Verbose) {
os/posix/perfMemory_posix.cpp:450:    if (PrintMiscellaneous && Verbose) {
os/posix/perfMemory_posix.cpp:683:  if (PrintMiscellaneous && Verbose && result == OS_ERR) {
os/posix/perfMemory_posix.cpp:825:        if (PrintMiscellaneous && Verbose) {
os/posix/perfMemory_posix.cpp:835:      if (PrintMiscellaneous && Verbose) {
os/posix/perfMemory_posix.cpp:875:    if (PrintMiscellaneous && Verbose) {
os/posix/perfMemory_posix.cpp:927:    if (PrintMiscellaneous && Verbose) {
os/posix/perfMemory_posix.cpp:936:    if (PrintMiscellaneous && Verbose) {
os/posix/perfMemory_posix.cpp:1060:    if (PrintMiscellaneous && Verbose) {
os/posix/perfMemory_posix.cpp:1138:    if (PrintMiscellaneous && Verbose) {
os/posix/perfMemory_posix.cpp:1215:    if (PrintMiscellaneous && Verbose) {
os/posix/perfMemory_posix.cpp:1251:      if (PrintMiscellaneous && Verbose) {
os/windows/os_windows.cpp:3350:    if (Verbose && PrintMiscellaneous) reserveTimer.start();
os/windows/os_windows.cpp:3357:    if (Verbose && PrintMiscellaneous) {
os/windows/perfMemory_windows.cpp:65:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:99:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:108:        if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:120:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:223:      if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:237:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:256:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:495:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:518:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:529:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:548:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:556:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:579:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:589:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:598:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:707:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:720:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:786:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:798:      if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:811:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:824:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:869:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:889:      if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:917:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:930:        if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:957:          if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:972:      if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:988:        if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:996:        if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1008:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1028:      if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1060:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1117:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1135:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1239:        if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1252:        if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1259:      if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1328:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1356:      if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1372:      if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1405:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1488:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1554:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1562:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1640:    if (PrintMiscellaneous && Verbose) {
os/windows/perfMemory_windows.cpp:1711:      if (PrintMiscellaneous && Verbose) {
share/compiler/disassembler.cpp:861:                    : ((WizardMode || PrintMiscellaneous)
share/opto/graphKit.cpp:856:        if (PrintMiscellaneous && (Verbose || WizardMode)) {
share/opto/gcm.cpp:739:       (PrintMiscellaneous && (WizardMode || Verbose)))) {
share/opto/library_call.cpp:787:    if ((PrintMiscellaneous && (Verbose || WizardMode)) || PrintOpto) {
share/opto/library_call.cpp:825:    if ((PrintMiscellaneous && (Verbose || WizardMode)) || PrintOpto) {
share/opto/matcher.cpp:1001:    if (PrintOpto || (PrintMiscellaneous && (WizardMode || Verbose))) {
share/runtime/globals.hpp:521:  develop(bool, PrintMiscellaneous, false,                                  \
share/runtime/perfData.cpp:227:  if (PrintMiscellaneous && Verbose) {
share/runtime/perfMemory.cpp:117:    if (PrintMiscellaneous && Verbose) {
share/runtime/perfMemory.cpp:177:    if (PrintMiscellaneous && Verbose) {
share/runtime/perfMemory.cpp:253:      if (PrintMiscellaneous && Verbose) {



Would it be okay to offer this in product JVMs ?  (Verbose is even harder to say, because it is used more)

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27602#issuecomment-3389510553


More information about the hotspot-runtime-dev mailing list