JDK-7121373 : Clean up CollectedHeap::is_in
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs23
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-12-14
  • Updated: 2012-03-29
  • Resolved: 2012-03-29
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
G1CollectedHeap::is_in asserts if a pointer below the heap is passed in as a parameter, which is not what's expected from a function implementing CollectedHeap::is_in.

The comments in CollectedHeap::is_in also states that state that is_in should return true if the passed in pointer points to the head of an object. None of the implementations check against the head of objects, so that requirement will be removed.

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

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/3c648b9ad052
15-12-2011