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

Race between ciEnv::register_method and nmethod::make_not_entrant_or_zombie

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • hs25
    • hs25
    • hotspot
    • b59

        Tests nsk/jvmti/RedefineClasses/StressRedefine and nsk/jvmti/RedefineClasses/StressRedefineWithoutBytecodeCorruption do the following: class methods being invoked aggressively while class itself being redefined with jvmti with multiple threads. These tests hang sometimes. pstack shows that hotspot is working and doing some compiler work that never ends.

        Steps to reproduce: go to sc11136470.us.oracle.com, cd to /export/local/repr1 and run "repr.sh" script in background. Wait until test run takes more than couple of minutes. It took 9 attempts to hang last time.

        I've launched script (it's dump_loop.sh in the same dir) that launches pstack every 5 seconds. Results can be found in "10029" dir. Several core files can be found there as well. Also I'll attach several pstack snapshots here.

        RULE nsk/jvmti/RedefineClasses/StressRedefineWithoutBytecodeCorruption Timeout none
        RULE nsk/jvmti/RedefineClasses/StressRedefine Timeout none

        Build that I used:
        java version "1.8.0-ea-fastdebug"
        Java(TM) SE Runtime Environment (build 1.8.0-ea-fastdebug-b102)
        Java HotSpot(TM) Server VM (build 25.0-b44-fastdebug, mixed mode)

          1. 10029.pstack.10
            44 kB
          2. 10029.pstack.101
            43 kB
          3. 10029.pstack.102
            44 kB
          4. 10029.pstack.103
            43 kB
          5. 10029.pstack.104
            43 kB
          6. 10029.pstack.105
            44 kB
          7. 10029.pstack.106
            44 kB
          8. 10029.pstack.11
            42 kB
          9. 10029.pstack.12
            44 kB
          10. 10029.pstack.13
            43 kB
          11. 10029.pstack.14
            44 kB
          12. 10029.pstack.15
            45 kB
          13. 8023037.register_method.patch
            4 kB

              vlivanov Vladimir Ivanov
              atimofee Aleksey Timofeev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: