XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b18

      Description

      In sa.js dumpheap is implemented as:

          registerCommand("dumpheap", "dumpheap [ file ]", "dumpHeap");

      The 3rd argument is the implementation. In this case it is a java method in JSJavaScriptEngine.java, which does the following:

          public Object dumpHeap(Object[] args) {
              String fileName = "heap.bin";
              if (args.length > 0) {
                  fileName = args[0].toString();
              }
              return new JMap().writeHeapHprofBin(fileName)? Boolean.TRUE: Boolean.FALSE;
          }

      So this java code is easily moved to CommandProcessor.java

        Attachments

          Activity

            People

            Assignee:
            cjplummer Chris Plummer
            Reporter:
            cjplummer Chris Plummer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: