JDK-6906565 : G1: deal with compilation warning in g1MemoryPool.hpp
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-12-02
  • Updated: 2013-09-18
  • Resolved: 2010-01-14
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 6 JDK 7 Other
6u21Fixed 7Fixed hs17Fixed
Related Reports
Relates :  
Description
The fix for 6815790 introduced three compilation warnings:

"/java/east/u2/ap31282/hotspot-g1-mm/src/share/vm/services/g1MemoryPool.hpp", line 201: Warning: G1EdenPool::max_size hides the virtual function MemoryPool::max_size() const.
"/java/east/u2/ap31282/hotspot-g1-mm/src/share/vm/services/g1MemoryPool.hpp", line 215: Warning: G1SurvivorPool::max_size hides the virtual function MemoryPool::max_size() const.
"/java/east/u2/ap31282/hotspot-g1-mm/src/share/vm/services/g1MemoryPool.hpp", line 229: Warning: G1OldGenPool::max_size hides the virtual function MemoryPool::max_size() const.
3 Warning(s) detected.

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/afc30fccf324
04-12-2009

EVALUATION See Suggested Fix.
02-12-2009

SUGGESTED FIX Change size_t max_size() to size_t max_size() const.
02-12-2009