harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Afremov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5018) [drlvm][shutdown] org.apache.harmony.test.stress.vm.threads.StressJoinTest doesn't return correct exit status
Date Wed, 05 Dec 2007 19:13:43 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pavel Afremov updated HARMONY-5018:
-----------------------------------

    Attachment: H-5018.patch

1.	Test is incorrect. In its JNI part, test occupies all native memory and doesn't process
OutOfMemoryError.
2.	It's not a regression. There is no revision where test works. I checked it on debug build
of DRLVM revision 580985, which corresponds Apache Harmony 5.0M3.
3.	Minor bug in JNI implementation was found and fixed (see attached patch).  But VM work
is still unstable, because no free native memory exists, because test occupies and don't free
native memory. To Fix this feature Native Memory Manager should be implemented.
4.	JRockit crashes on this test. The RI works incorrect too.
It's Output is following:

[debug] Stopping the test
[debug] Cannot stop all threads, possibly deadlock occurs. VM will be aborted.


In debug build DRLVM asserts and returns incorrect exit code (0x03). In release build DRLVM
shows following output :

[debug] Stopping the test
Native code: NULL returned at i=2614418
....
Native code: NULL returned at i=1840568
[debug] Cannot stop all threads, possibly deadlock occurs. VM will be aborted.

Output is the same as on RI. Exit code is correct.

5.	Evaluated feature doesn't match original bug description. So "3 exit code" issue is partly
fixed, but "128 exit code" should be evaluated additionaly.


> [drlvm][shutdown] org.apache.harmony.test.stress.vm.threads.StressJoinTest doesn't return
correct exit status
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5018
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5018
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>         Environment: win 32, debug build
>            Reporter: Alexei Fedotov
>         Attachments: H-5018.patch
>
>
> The following test reports incorrect exit status on Harmony VM
> $ build/checkouts/hdk/target/hdk/jdk/jre/bin/java.exe -showversion -Dorg.apache.harmony.test.share.stress.ReliabilityRunner.timeToWork=30
-org.apache.harmony.test.share.stress.ReliabilityRunner.timeToAbort=30 -cp build/classes/stress/classes';build/results/stress/temp;build\classes\stress\classes;build\classes\stress\lib;build\libs\th.jar;build\libs\junit-3.8.2.jar'
org.apache.harmony.test.stress.vm.threads.StressJoinTest -numThreads 100 -smallObjSize 500
-freeMem 1000 -sleepTime 3000 -oOMEr on -sOEr on -joinMthd leader logLevel INFO || echo $?
> 128

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message