JDK-8307969 : [zgc] Missing includes in gc/z/zTracer.cpp
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-05-12
  • Updated: 2023-05-17
  • Resolved: 2023-05-12
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 21
21 b23Fixed
Related Reports
Relates :  
Description
Reproduce: configure and build with --with-jvm-features=-jfr

/data/jdk/src/hotspot/share/gc/z/zTracer.cpp: In member function 'virtual void ZYoungTracer::report_end(const Ticks&)':
/data/jdk/src/hotspot/share/gc/z/zTracer.cpp:105:40: error: incomplete type 'ZGeneration' used in nested name specifier
  105 |   e.set_tenuringThreshold(ZGeneration::young()->tenuring_threshold());
      |                                        ^~~~~
gmake[3]: *** [lib/CompileJvm.gmk:147: /data/jdk/build/linux-x86_64-server-fastdebug/hotspot/variant-server/libjvm/objs/zTracer.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[2]: *** [make/Main.gmk:252: hotspot-server-libs] Error 2
Comments
Changeset: ccb4dd61 Author: Jie Fu <jiefu@openjdk.org> Date: 2023-05-12 06:31:09 +0000 URL: https://git.openjdk.org/jdk/commit/ccb4dd614483c11903dfde3e249c5ea8c8b04070
12-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/13948 Date: 2023-05-12 01:23:00 +0000
12-05-2023