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

Large reference arrays cause extremely long synchronization times

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b150

      Backports

        Description

        Large reference arrays cause extremely long synchronization or pause times on both CMS and G1 during marking/pre-cleaning/other tracing related tasks.

        The problem is that large reference arrays are not split up into parts during processing, which means that the thread that is currently working on it needs to finish completely before the GC pause can be started.

        In G1, run the attached test program with -Xmx14G -XX:+PrintGCDetails -XX:+PrintSafepointStatistics -XX:PrintSafepointStatisticsCount=1 -XX:+UseG1GC -XX:InitiatingHeapOccupancyPercent=50 to see that synchronizing for the safepoint takes extremely long

                 vmop [threads: total initially_running wait_to_block] [time: spin block sync cleanup vmop] page_trap_count
        829.726: G1IncCollectionPause [ 21 0 0 ] [ 0 0 30576 0 6 ] 0

        There is an additional problem: after finishing the marking, at least in the example program there is a guaranteed mark stack overflow, indicating that the marking will never make progress. This may be handled separately.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tschatzl Thomas Schatzl
                  Reporter:
                  tschatzl Thomas Schatzl
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  11 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved: