JDK-7110190 : GCCause::to_string missing case for _adaptive_size_policy
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2011-11-09
  • Updated: 2012-03-22
  • Resolved: 2012-01-23
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 7 JDK 8 Other
7u4Fixed 8Fixed hs23Fixed
Description
FULL PRODUCT VERSION :
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)

(Verified that it's still a problem in: http://hg.openjdk.java.net/jdk7u/jdk7u)


FULL OS VERSION :
Applies to ALL OS's.

A DESCRIPTION OF THE PROBLEM :
In hotspot/src/share/vm/gc_interface/gcCause.cpp:

There is not case for _adaptive_size_policy (which is a common condition).

Whenever a cause is printed for this case, the string is: "unknown GCCause", which is quite ambiguous.




THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try

THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try

REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/ab5107bee78c
22-03-2012

EVALUATION See main CR
30-11-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-emb/hotspot/rev/ab5107bee78c
29-11-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/ab5107bee78c
15-11-2011

EVALUATION Need to add "case _adaptive_size_policy:" to GCCause::to_string().
09-11-2011