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

Allocation of huge array which would cause OutOfMemoryError causes JVM to hang with -Xincgc

XMLWordPrintable

    • gc
    • 1.4.2
    • b03
    • generic, sparc
    • generic, solaris
    • Verified

        The following simple program when run with -Xincgc (or with -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode) causes JVM to hang.

        public class Allocate {
                public static void main(String[] args) {
                        int size = Integer.parseInt(args[0]);
                        int[] arr = new int[size];
                }
        }

              ysr Y. Ramakrishna
              nhaustov Nicolay Haustov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: