JDK-7004530 : casx used for 32 bit cas after 7003554
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs20
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2010-12-03
  • 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
Related Reports
Relates :  
Description
All SEGV at the same compiled method at the same instruction:

http://sqeweb.sfbay.sun.com/nfs/results/vm/gtee/JDK7/NIGHTLY/VM/2010-12-02/Comp_Baseline/javase/solaris-sparc/client/comp/solaris-sparc_javase_client_comp_JT_HS/workDir/closed/compiler/6512111/CorruptFinalLong/hs_err_pid24481.log

#  SIGSEGV (0xb) at pc=0xfb58d700, pid=29531, tid=16
#
# JRE version: 7.0
# Java VM: OpenJDK Client VM (20.0-b03-201012021241.ct232829.6998985-fastdebug compiled mode solaris-sparc )
# Problematic frame:
# J java.util.concurrent.atomic.AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl.compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
#

;; 00000000fb67c840 c7 f6 10 01             casx  [ %i0 ], %g1, %g3

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

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

EVALUATION 7004530: casx used for 32 bit cas after 7003554 Reviewed-by: kvn, iveresov The cas changes for compressed oops accidentally switched to using casx all the time which crashes in 32 bit. The fix is to use cas_ptr. Tested with failing test from nightly.
03-12-2010

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/7601ab0e1e33
03-12-2010