harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elena Semukhina (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2204) [drlvm][kernel test] Kernel test ThreadTest.testJoinlongint() fails from time to time.
Date Wed, 29 Nov 2006 13:03:23 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2204?page=all ]

Elena Semukhina updated HARMONY-2204:

    Attachment: H-2204_updated.patch

After a few iterative runs I gained statictics on actual wait timing in ThreadTest and ObjectTest.
The tests may wait up to 2.5% less than expected. Since this does not contradict to spec for
wait() ,sleep() and join() I think we can correct the time of waiting.

The updated patch contains the following:


1) The time of waiting in some tests corrected.

2) The patch for ThreadTest.testYield() from HARMONY-2343 so that it is applied here.

3) Code clean up: redundant waiting for a thread is alive after start removed. The Thread.start()
implementation guarantees that isAlive status of a thread is set. 
testIsAlive() has been added to verify this. Some tests have been fixed so they wait for a
thread's run() method actual start.


The time of waiting in waitLongInt () decreased by 2.5%.

Iterative runs of tests did not show failures for hundreds of runs.

> [drlvm][kernel test] Kernel test ThreadTest.testJoinlongint() fails from time to time.
> --------------------------------------------------------------------------------------
>                 Key: HARMONY-2204
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2204
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: H-2204.patch, H-2204_updated.patch
> When the test fails, it reports that it spent less time in join() than expected.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message