JDK-6860920 : serialize.cpp shouldn't use objArrayOopDesc::base_offset_in_bytes(T_BYTE)
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs16
  • Priority: P5
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-07-15
  • Updated: 2010-07-29
  • Resolved: 2010-01-15
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
6u18Fixed 7Fixed hs16Fixed
serialize.cpp currently uses objArrayOopDesc::base_offset_in_bytes(T_BYTE), which seems to be wrong.  Since objArrayOopDesc can only store oops, the only valid type is T_OBJECT.

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/94b6d06fd759

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/94b6d06fd759

SUGGESTED FIX Add objArrayOopDesc::base_offset_in_bytes(), which calls arrayOopDesc::base_offset_in_bytes(T_OBJECT), as similarily done with base().