JDK-8154280 : Zero build fails with undeclared G1LastPLABAverageOccupancy
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-04-14
  • Updated: 2016-05-26
  • Resolved: 2016-04-20
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 9
9 b120Fixed
Related Reports
Relates :  
Description

This fixes it:diff --git a/src/share/vm/gc/g1/g1EvacStats.cpp b/src/share/vm/gc/g1/g1EvacStats.cpp
--- a/src/share/vm/gc/g1/g1EvacStats.cpp
+++ b/src/share/vm/gc/g1/g1EvacStats.cpp
@@ -24,6 +24,7 @@
 
 #include "precompiled.hpp"
 #include "memory/allocation.inline.hpp"
+#include "gc/g1/g1_globals.hpp"
 #include "gc/g1/g1EvacStats.hpp"
 #include "gc/shared/gcId.hpp"
 #include "logging/log.hpp"
/home/cphillim/hg.local/jdk9.zero/hotspot/src/share/vm/gc/g1/g1EvacStats.cpp: In member function ���vi
rtual void G1EvacStats::adjust_desired_plab_sz()���:
/home/cphillim/hg.local/jdk9.zero/hotspot/src/share/vm/gc/g1/g1EvacStats.cpp:110:69: error: ���G1LastP
LABAverageOccupancy��� was not declared in this scope
   size_t const cur_plab_sz = (size_t)((double)total_waste_allowed / G1LastPLABAverageOccupancy);
                                                                     ^
make[4]: *** [/home/cphillim/hg.local/jdk9.zero/build/linux-x86_64-normal-zero-fastdebug/hotspot/var
iant-zero/libjvm/objs/g1EvacStats.o] Error 1


Comments
Coleen, looks good to me. Maybe you can incorporate this into the patch for JDK-8153275.
18-04-2016

Zero is not a configuration that Oracle supports directly. We don't even build it via our automated systems. Removing the 'integration_blocker' label.
15-04-2016

once it builds, it gets this error in linked bug.
14-04-2016