United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6689060 Escape Analysis does not work with Compressed Oops
JDK-6689060 : Escape Analysis does not work with Compressed Oops

Details
Type:
Bug
Submit Date:
2008-04-15
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
hotspot
OS:
solaris_10
Sub-Component:
compiler
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs13
Fixed Versions:
hs13 (b01)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
One of the issue. I will add others as I find.

% gamma -XX:+UseCompressedOops -XX:+DoEscapeAnalysis  Test_SR
VM option '+UseCompressedOops'
VM option '+DoEscapeAnalysis'
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/escape.cpp:117
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/net/jaberwocky.sfbay/export/home2/work2/hg/narwoop/src/share/vm/opto/escape.cpp:117), pid=8504, tid=20
#  Error: assert(f->node_type() != PointsToNode::UnknownType && t->node_type() != PointsToNode::UnknownType,"node types must be set")
#
# Java VM: OpenJDK 64-Bit Server VM (12.0-b02-internal-jvmg mixed mode solaris-amd64 compressed oops)

                                    

Comments
EVALUATION

Added missing lines in escape.cpp.

Scalar Replacement: Cast oop fields type to narrow before searching
values since values has narrow type. Used DecodeN to get wide oops for
debug info (I will optimize it later) and undo cast to narrow.
Added Value() method to EncodeP and DecodeN to avoid
the generation of encode/decode instructions for NULL.

Added not_null EncodeP DecodeN instructions into .ad files.
Fixed verify_oop stabs included debug messages to know where
a problem happened.

VerifyOops still failing with CO (even without EA and this changes).
                                     
2008-04-23



Hardware and Software, Engineered to Work Together