JDK-6984053 : C1: Bad code for integer code addition on x64
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs20
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: x86
  • Submitted: 2010-09-11
  • Updated: 2010-09-11
  • Resolved: 2010-09-11
Related Reports
Duplicate :  
Description
Test java/util/Collections/Rotate.java failed in nightly testing with:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xfffffd7ff658ff92, pid=2037, tid=16
#
# JRE version: 7.0
# Java VM: OpenJDK 64-Bit Server VM (19.0-b06-201009091225.ct232829.6934483-fastdebug compiled mode solaris-amd64 )
# Problematic frame:
# J  java.util.ArrayList.get(I)Ljava/lang/Object;
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

Comments
EVALUATION C1 generates incorrect code for addition of a constant to an int on x64. Instead of generating a 32bit arithmetic instruction it does 64bit. With causes usage of higher bits instead of causing overflow, making result incorrect.
11-09-2010