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

[s390, PPC64] Exception check missing in interpreter

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b12
    • CPU:
      ppc, s390x

      Backports

        Description

        We have sporadically seen "assert(!(((ThreadShadow*)__the_thread__)->has_pending_exception())) failed: Should not have any exceptions pending" on s390 while running jtreg test "vmTestbase/nsk/jvmti/scenarios/capability/CM03/cm03t001".
        The VM asserts that no exception is pending after a backedge counter overflow. The unexpected pending exception found in frequency_counter_overflow_inner is an instance of java.lang.ThreadDeath which got installed asynchronously by the test via JVMTI StopThread.
        The VM call to InterpreterRuntime::build_method_counters misses an exception check in the s390 implementation. This is necessary for asynchronous exceptions which get installed by this test.

        Stack:
        V [libjvm.so+0xb78cd4] InterpreterRuntime::frequency_counter_overflow_inner(JavaThread*, unsigned char*)+0x1cc
        V [libjvm.so+0xb79368] InterpreterRuntime::frequency_counter_overflow(JavaThread*, unsigned char*)+0x28
        j nsk.jvmti.scenarios.capability.CM03.cm03t001Thread.waitUntilQuit()V+2
        j nsk.jvmti.scenarios.capability.CM03.cm03t001Thread.delay()V+10
        j nsk.jvmti.scenarios.capability.CM03.cm03t001Thread.run()V+35

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mdoerr Martin Doerr
                Reporter:
                mdoerr Martin Doerr
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: