[ https://issues.apache.org/jira/browse/HARMONY-2986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
George Timoshenko updated HARMONY-2986:
---------------------------------------
Attachment: DekkerTest.java
The DekkerTest initially attached to the issue is incorrect.
I fixed 2 problems:
1) method 'run' in case of failure returns without releasing the critical section
So the test hangs insted of correct failure
2) as the second thread can work beween
base.commonVar = vars[threadNum];
and
if (base.commonVar != vars[threanNum])
this comparison must be changed in the following way:
if (base.commonVar != vars[0] &&
base.commonVar != vars[1])
{....
> [drlvm][test][reliability] VM hangs on Dekkers algorithm
> --------------------------------------------------------
>
> Key: HARMONY-2986
> URL: https://issues.apache.org/jira/browse/HARMONY-2986
> Project: Harmony
> Issue Type: Test
> Components: DRLVM
> Environment: win XP with 2 Xeon CPUs, drlvm (msvc, debug), svn = r495493
> Reporter: tatyana doubtsova
> Assignee: weldon washburn
> Attachments: DekkerTest.java, DekkerTest.java, run.bat
>
>
> Running DekkerTest from reliability test suite (https://issues.apache.org/jira/browse/HARMONY-2918)
> I observed intermittent drlVM hangs (~1 out of 5). Typing <ctrl><break> gives:
> .....
> iteration number is 2
> The stack trace of the 02CE40A8 java thread:
> The stack trace of the 02CE60D8 java thread:
> [02CE60D8] 03320F02(m): Dekkerthread.regionIn(I)V
> [02CE60D8] 03320C03(m): Dekkerthread.run()V
> [02CE60D8] 033106B8(m): java/lang/Thread.runImpl()V
> The stack trace of the 02C24270 java thread:
> [02C24270] 00000000(n): java/lang/VMThreadManager.wait(Ljava/lang/Object;JI)I
> [02C24270] 0331042B(m): java/lang/Object.wait()V
> [02C24270] 034416EC(m): java/lang/FinalizerThread.waitNewTask()V
> [02C24270] 03440432(m): java/lang/FinalizerThread.run()V
> [02C24270] 033106B8(m): java/lang/Thread.runImpl()V
> The stack trace of the 012EF160 java thread:
> [012EF160] 00000000(n): java/lang/VMThreadManager.wait(Ljava/lang/Object;JI)I
> [012EF160] 0331042B(m): java/lang/Object.wait()V
> [012EF160] 034612EE(m): java/lang/Thread.join()V
> [012EF160] 0332053A(m): DekkerTest.test()I
> [012EF160] 033200FA(m): DekkerTest.main([Ljava/lang/String;)V
> ...........
> Reproducing code and run script attached.
> It should be noticed that test also hang on jdk1.5.0_08 and IBM VME. But it occurs ~50
times rarely.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|