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

VM lockup with -XX:+UseConcMarkSweepGC while loading classes with custom classloader

    Details

    • Subcomponent:
      gc
    • Introduced In Build:
      beta
    • Introduced In Version:
      6
    • Resolved In Build:
      b54
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      While trying to develop a testcase for 5093520, I have come across a lock up which happens with -XX:+UseConcMarkSweepGC.

      How to reproduce:
      - unzip LoadUnloadGC2.zip to some directory
      - javac -cp . gc/gctests/LoadUnloadGC2/LoadUnloadGC2.java
        javac -cp . nsk/share/classload/TemplateClass.java
      - java -XX:+UseConcMarkSweepGC -XX:+TraceClassLoading -XX:+TraceClassUnloading -XX:+PrintGCDetails -cp . gc.gctests.LoadUnloadGC2.LoadUnloadGC2

      Run logs attached: dump_normal.log, pstack.log (pstack on locked up process).
      Fastdebug version dumps core instead of locking up, logs attached: dump.log, hs_err_pid6835.log.

      Without -XX:+UseConcMarkSweepGC, the test eventually OOMs, which is also a problem.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: