Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8189617

Remove undocumented --print-mem-usage option

    Details

    • Type: Task
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b29
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: