JDK-8211239 : Build fails without JFR: empty JFR events signatures mismatch
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 12
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-09-27
  • Updated: 2020-04-27
  • Resolved: 2018-10-01
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 12 Other
12 b14Fixed openjdk8u262Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
This causes to build failures when build configuration disables JFR, like JDK-8211213 and JDK-8211228 with: 

/pool/buildbot/slaves/sobornost/jdkX/build/src/hotspot/share/gc/g1/g1CollectedHeap.cpp: In member function 'bool G1ParEvacuateFollowersClosure::offer_termination()':
/pool/buildbot/slaves/sobornost/jdkX/build/src/hotspot/share/gc/g1/g1CollectedHeap.cpp:3177:106: error: no matching function for call to 'EventGCPhaseParallel::commit(uint, uint, const char*)'
   event.commit(GCId::current(), pss->worker_id(), G1GCPhaseTimes::phase_name(G1GCPhaseTimes::Termination));

The fix candidate is this:
 http://cr.openjdk.java.net/~shade/8211239/webrev.01/

Until JDK-8211268 is pushed, the easiest way to verify this works is to configure and build post-JDK-8196341 jdk/jdk using --with-jvm-variants=zero.
Alternatively, disable JFR with --with-jvm-features=-jfr.
Comments
Replacing jdk8u-fix-request with link to JDK-8239140
17-02-2020

RFC: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-January/011063.html
30-01-2020

I think whoever is going to RFR the fix should be the assignee. I actually like the fix that reuses printCommitMethod.
28-09-2018

Is it okay if I assign this bug to you Aleksey as we are going to use your fix?
28-09-2018

Reopening as it is captures the real issue with JFR generation.
28-09-2018

As there is already a review out for JDK-8211213 that fixes this problem, closing this one as duplicate.
28-09-2018

Leo made another fix candidate here: http://cr.openjdk.java.net/~lkorinth/8211213/00/ -- it is probably a good idea to reuse printCommitMethod.
27-09-2018

This is the uncharted territory for me, can anyone from JFR team follow up on this? Thanks.
27-09-2018