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

Race between ciEnv::register_method and nmethod::make_not_entrant_or_zombie

    XMLWordPrintable

Details

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

    Backports

      Description

        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)

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: