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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 6
    • Affects Version/s: 6
    • Component/s: hotspot
    • gc
    • beta
    • 6
    • b54
    • generic
    • generic
    • Verified

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: