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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 6
    • 6
    • hotspot
    • gc
    • beta
    • 6
    • b54
    • generic
    • generic
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: