NativeMemoryTracking is handled by launcher inconsistenly

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: None
    • Component/s: tools
    • None
    • b07
    • generic
    • generic

      There is inconsistency how launcher and hotspot handle -XX:NativeMemoryTracking for non-java(w)

      For all launcher-based tools launcher ignores the parameter but hotspot handles it.
      As a result VM warning is printed:
      > jcmd -J-XX:NativeMemoryTracking=detail
      Java HotSpot(TM) 64-Bit Server VM warning: Native Memory Tracking did not setup properly, using wrong launcher?
      20508 jdk.jcmd/sun.tools.jcmd.JCmd

      > jar -J-XX:NativeMemoryTracking=detail
      Java HotSpot(TM) 64-Bit Server VM warning: Native Memory Tracking did not setup properly, using wrong launcher?
      Usage: jar [OPTION...] [ [--release VERSION] [-C dir] files] ...
      Try `jar --help' for more information.

      As far as I see from history, this was implemented this way initially (JDK-8042469), CCC request tells nothing about java/non-java launcher differences.

            Assignee:
            Alex Menkov
            Reporter:
            Alex Menkov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: