JDK-8229925 : [s390, PPC64] Exception check missing in interpreter
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11,13,14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • CPU: ppc,s390x
  • Submitted: 2019-08-20
  • Updated: 2021-06-30
  • Resolved: 2019-08-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14
11.0.5Fixed 13.0.2Fixed 14 b12Fixed
Related Reports
Relates :  
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

Comments
Fix Request JDK13u The issue was also observed in JDK13. Fix is trivial and was tested in our nightly tests. Applies cleanly.
29-08-2019

Fix Request JDK11u The issue was also observed in JDK11u. Fix is trivial and was tested in our nightly tests. Applies cleanly.
22-08-2019

URL: https://hg.openjdk.java.net/jdk/jdk/rev/de0ccdc4db13 User: mdoerr Date: 2019-08-22 13:52:56 +0000
22-08-2019