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

Serial: Swap eden and survivor spaces position in young generation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • hotspot
    • gc

      There are 3 spaces inside young-gen, eden, from, and to spaces. (The latter two are survivor spaces.)

      Eden is placed before from/to. This placement makes is hard to expand eden when there is live objs inside from/to spaces. Therefore, one can encounter premature OOM, even when there are still large unused room at the end of young-gen.

      One can move eden after from/to spaces so that eden can expand to the end of young-gen in order to satisfy an allocation request.

      The same layout is also used in Parallel since JDK-8338977.

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: