JDK-8049241 : dead code in ForkJoinTask.java
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.concurrent
  • Affected Version: 8u5
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86
  • Submitted: 2014-06-29
  • Updated: 2014-10-23
  • Resolved: 2014-10-23
Related Reports
Duplicate :  
Relates :  
Description
FULL PRODUCT VERSION :

java version "1.8.0_05"
java<TM> SE Runtime Environment <build 1.8.0_05-b13>
Java HotSpot<TM> Client VM <build 25.5-b02, mixed mode, sharing>


A DESCRIPTION OF THE PROBLEM :
ForkJoinTask 580 line has a "fase", resulting in this line of code will never be executed������

580             if (false && e.thrower != Thread.currentThread().getId()) {

This is not intentional, right?

REGRESSION.  Last worked in version 8u5

ADDITIONAL REGRESSION INFORMATION: 

java version "1.8.0_05"
java<TM> SE Runtime Environment <build 1.8.0_05-b13>
Java HotSpot<TM> Client VM <build 25.5-b02, mixed mode, sharing>



REPRODUCIBILITY :
This bug can be reproduced always.


Comments
Resolve by duplicate JDK-8056248
23-10-2014

This was enhanced exception handling code that was being trialled. I didn't realize it was present but disabled in the current codebase.
04-07-2014

I guess it will be synced next time: http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/ForkJoinTask.java?r1=1.85&r2=1.86
03-07-2014

must be some temporarily commented out code. it still exists there in jdk9.
03-07-2014