United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7105364 JDK8 b10 hotspot: src/share/vm/ci/ciMethodHandle.cpp Error: Use "." or "->" ....
7105364 : JDK8 b10 hotspot: src/share/vm/ci/ciMethodHandle.cpp Error: Use "." or "->" ....

Details
Type:
Bug
Submit Date:
2011-10-27
Status:
Closed
Updated Date:
2012-03-22
Project Name:
JDK
Resolved Date:
2012-01-23
Component:
hotspot
OS:
solaris_nevada
Sub-Component:
compiler
CPU:
sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:
hs23

Related Reports
Backport:
Backport:

Sub Tasks

Description
I copied HS sources from:


/net/koori.us.oracle.com/onestop/jdk/8/promoted/all/b10//ws/hotspot

But I was not able to successfully build them on  my T2  ' machine which has latest Solaris 11 snv_175.
I got syntax error for src/share/vm/ci/ciMethodHandle.cpp file:

"ciMethodHandle.cpp", line 96: Error: Use "." or "->" to call AllocatedObj::print() const.

How to reproduce
================

cp -r /net/gozo-1.us.oracle.com/export/results/isv_bugs/hotspot_jdk8_cmp_fail <your_area_on_sparc>


cd  <your_area_on_sparc>/hotspot_jdk8_cmp_fail
bld_it.sh

The failure looks like this:

+ /net/kits.us.oracle.com/compilers/releases/sunstudio12.1/sparc-S2.inst/sunstudio12.1/bin/CC -c -library=%none -KPIC -mt -xdebugformat=stabs -xwe -features=no%except -template=no%extdef -features=no%split_init -xmemalign=4s -m32 -xarch=sparc -DSOLARIS -DSPARC_WORKS -DSPARC -DTARGET_OS_FAMILY_solaris -DTARGET_ARCH_sparc -DTARGET_ARCH_MODEL_sparc -DTARGET_OS_ARCH_solaris_sparc -DTARGET_OS_ARCH_MODEL_solaris_sparc -DTARGET_COMPILER_sparcWorks -DCOMPILER2 -DCOMPILER1 -DDONT_USE_PRECOMPILED_HEADER -D_Crun_inline_placement -DHAVE_DTRACE_H -DDTRACE_ENABLED -DHOTSPOT_RELEASE_VERSION=23.0-b02-internal -DHOTSPOT_BUILD_TARGET=optimized -DHOTSPOT_BUILD_USER=sprs -DHOTSPOT_LIB_ARCH=sparc -DJRE_RELEASE_VERSION=1.8.0 -Iincls ciMethodHandle.cpp

"ciMethodHandle.cpp", line 96: Error: Use "." or "->" to call AllocatedObj::print() const.
1 Error(s) detected.

                                    

Comments
EVALUATION

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

See main CR
                                     
2011-11-30
EVALUATION

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

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

http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/e0658a9b3f87
                                     
2011-10-27
EVALUATION

Optimized build is broken. MethodHandleChain::print() is defined only for debug builds but it is called from NOT_PRODUCT code in ciMethodHandle::print_chain_impl().

Define ciMethodHandle::print_chain_impl() and ciMethodHandle::print_chain() bodies only in debug builds.
                                     
2011-10-27



Hardware and Software, Engineered to Work Together