JDK-7005241 : C1: SEGV in java.util.concurrent.LinkedTransferQueue.xfer() with compressed oops
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs20
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-12-07
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
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
6u25Fixed 7Fixed hs20Fixed
Description
A bunch of tests failed in nightlies with tiered:

java/util/Collections/RacingCollections.java
java/util/concurrent/BlockingQueue/MultipleProducersSingleConsumerLoops.java
java/util/concurrent/BlockingQueue/OfferDrainToLoops.java
java/util/concurrent/BlockingQueue/ProducerConsumerLoops.java
java/util/concurrent/BlockingQueue/SingleProducerMultipleConsumerLoops.java
java/util/concurrent/ConcurrentQueues/ConcurrentQueueLoops.java
java/util/concurrent/ConcurrentQueues/GCRetention.java
java/util/concurrent/ConcurrentQueues/OfferRemoveLoops.java
java/util/concurrent/ConcurrentQueues/RemovePollRace.java

With:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xfffffd7ff604cb3e, pid=8811, tid=202
#
# JRE version: 7.0
# Java VM: OpenJDK 64-Bit Server VM (20.0-b03-201012032355.jrose.hotspot-fastdebug mixed mode solaris-amd64 compressed oops)
# Problematic frame:
# J  java.util.concurrent.LinkedTransferQueue.xfer(Ljava/lang/Object;ZIJ)Ljava/lang/Object;
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/build/hotspot/rev/ec8c74742417
25-12-2010

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/ec8c74742417
16-12-2010

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/ec8c74742417
08-12-2010

EVALUATION Implementation of the CAS primitive for x64 compressed oops is incorrect. It kills rscratch2 register (r11), which is allocatable in C1.
07-12-2010