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

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

    Details

    • Subcomponent:
      gc
    • Introduced In Build:
      1.4.2
    • Introduced In Version:
    • Resolved In Build:
      b03
    • CPU:
      generic, sparc
    • OS:
      generic, solaris
    • Verification:
      Verified

      Backports

        Description

        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];
                }
        }

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: