JDK-8250635 : MethodArityHistogram should use Compile_lock in favour of fancy checks
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2020-07-27
  • Updated: 2022-02-06
  • Resolved: 2020-09-23
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 16
11.0.12Fixed 16 b18Fixed
Related Reports
Relates :  
Relates :  
Description
Back in 2018, JDK-8209588, and shortly after, JDK-8209950 was filed. The remedy to the observed SIGSEGV was to call a method which would use heuristics, guided by prior observations, to find out if the storage at hand was safe to be interpreted a nmethod object.

Meanwhile, further insights led to the conclusion that the Compile_lock should be held (in addition to the CodeCache_lock) while constructing the MethodArityHistogram. Holding that additional lock would make it obsolete to rely on heuristics. 
Comments
Test: Local build as well as SAP's build and test farm. Tests did not reveal any issues. From this end, downport is ready to be pushed..
15-04-2021

Fix request (11u): This backport is a prerequisite for other fixes, in particular JDK-8219586. The patch is small, but does not apply cleanly. The link to the RFR discussion: https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2021-April/005719.html
14-04-2021

Changeset: 0bc01da7 Author: Lutz Schmidt <lucy@openjdk.org> Date: 2020-09-23 15:37:57 +0000 URL: https://git.openjdk.java.net/jdk/commit/0bc01da7
23-09-2020