JDK-8244287 : JFR: Methods samples have line number 0
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 11.0.7
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-05-02
  • Updated: 2021-02-22
  • Resolved: 2020-09-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
11.0.10Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
All method samples seems to have line number 0.


Comments
This has been backed out: JDK-8253813
29-01-2021

Caused by a mistake during backport of JDK-8237904. Will fix and add a test to detect any regressions in the future.
22-09-2020

URL: https://hg.openjdk.java.net/jdk-updates/jdk11u/rev/e872676174c7 User: jbachorik Date: 2020-09-22 15:43:05 +0000
22-09-2020

Hi Christoph, sorry for the typo. Fixed the comment in-place.
22-09-2020

[11u] Request The JDK-8237904 backport introduced a regression and this fix is supposed to resolve that problem. Also adding a new test to prevent such regressions in the future.
22-09-2020

Hi Jaroslav, do you mean the backport JDK-8237904 of JDK-8231081? I'd like to link the issues...
23-06-2020

RFR: https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2020-June/003312.html https://mail.openjdk.java.net/pipermail/hotspot-jfr-dev/2020-June/001545.html
18-06-2020

ILW = HMM = P2
05-05-2020

Suggested fix: diff -r cc0ab5c637ea src/hotspot/share/jfr/recorder/stacktrace/jfrStackTrace.cpp --- a/src/hotspot/share/jfr/recorder/stacktrace/jfrStackTrace.cpp Mon Apr 27 12:32:12 2020 +0800 +++ b/src/hotspot/share/jfr/recorder/stacktrace/jfrStackTrace.cpp Sun May 03 13:34:29 2020 +0200 @@ -200,7 +200,7 @@ const int lineno = method->line_number_from_bci(bci); // Can we determine if it's inlined? _hash = (_hash << 2) + (unsigned int)(((size_t)mid >> 2) + (bci << 4) + type); - _frames[count] = JfrStackFrame(mid, bci, type, method); + _frames[count] = JfrStackFrame(mid, bci, type, method, lineno); st.samples_next(); count++; }
03-05-2020