Remove undocumented --print-mem-usage option

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 9
    • Component/s: core-libs
    • None
    • b29
    • generic
    • generic

      Nashorn contains an undocumented --print-mem-usage option that allows to print the memory size of the IR after each compile step. This feature is broken in JDK9 because it requires deep reflection on all modules used in in the AST. There is no practical way to specify --add-opens options for all packages that may be used by the AST. Since the feature is not often used, hard to to test and maintain, and can possibly be replaced by other tools such as memory profilers, we think the right solution is to remove the feature from Nashorn code.

            Assignee:
            Hannes Wallnoefer
            Reporter:
            Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: