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

Use mapped memory file for CDS rather than copying to file

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 9
    • 8
    • hotspot
    • None
    • generic
    • generic

      RFE idea from Dean Long in regards to the new CDS implementation after the upcoming permgen elimination work is integrated.

      >>
      >> For dump, it looks like the code is still allocating anonymous memory first and then writing to a file later. A slight optimization would be to create the archive file early, then map the zeroed out file instead of anonymous memory.
      >
      > I didn't know how to do this. You mean create a shared map file and it would just write the data in that?
      Yes, dump would create a file and map it the same was restore opens a file and maps it. Then there would be no more writing into the file with write(2) but instead direct memory writes.

            Unassigned Unassigned
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: