You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Elena Semukhina (JIRA)" <ji...@apache.org> on 2006/11/28 12:28:22 UTC

[jira] Created: (HARMONY-2343) [drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.

[drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.
--------------------------------------------------------------------------

                 Key: HARMONY-2343
                 URL: http://issues.apache.org/jira/browse/HARMONY-2343
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Elena Semukhina


The test fails approximately once per 10 runs. It fails mainly in the batch mode and usually passes when running separately.

The attached test is an excerpt from ThreadTest but it is not an issue reproducer. On the contrary, it demonstrates fine threads alternating on DRLVM while it always fails on RI 1.5.0_08. 

Nevertheless, I think ThreadTest is not quite correct. The spec says:

(yield) Causes the currently executing thread object to temporarily pause and allow other threads to execute.

The test should not expect that the two threads alternate. Any other thread can execute while some thread yields. And this happens most likely when a lot of threads are alive during the test run.



-- 
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

        

[jira] Commented: (HARMONY-2343) [drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.

Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2343?page=comments#action_12457243 ] 
            
Elena Semukhina commented on HARMONY-2343:
------------------------------------------

Weldon,

could you close this issue because the test has been already fixed with the HARMONY-2204 commit.

Thanks,
Elena

> [drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-2343
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2343
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Assigned To: weldon washburn
>         Attachments: H-2343_ThreadTest.patch, ThreadYield.java
>
>
> The ThreadTest.testYield() fails approximately once per 10 runs. It fails mainly in the batch mode and usually passes when running separately.
> The attached test is an excerpt from ThreadTest but it is not an issue reproducer. On the contrary, it demonstrates fine threads alternating on DRLVM while it always fails on RI 1.5.0_08. 
> Nevertheless, I think ThreadTest is not quite correct. The spec says:
> (yield) Causes the currently executing thread object to temporarily pause and allow other threads to execute.
> The test should not expect that the two threads alternate. Any other thread can execute while some thread yields. And this happens most likely when a lot of threads are alive during the test run.

-- 
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

        

[jira] Updated: (HARMONY-2343) [drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.

Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2343?page=all ]

Elena Semukhina updated HARMONY-2343:
-------------------------------------

    Description: 
The ThreadTest.testYield() fails approximately once per 10 runs. It fails mainly in the batch mode and usually passes when running separately.

The attached test is an excerpt from ThreadTest but it is not an issue reproducer. On the contrary, it demonstrates fine threads alternating on DRLVM while it always fails on RI 1.5.0_08. 

Nevertheless, I think ThreadTest is not quite correct. The spec says:

(yield) Causes the currently executing thread object to temporarily pause and allow other threads to execute.

The test should not expect that the two threads alternate. Any other thread can execute while some thread yields. And this happens most likely when a lot of threads are alive during the test run.



  was:
The test fails approximately once per 10 runs. It fails mainly in the batch mode and usually passes when running separately.

The attached test is an excerpt from ThreadTest but it is not an issue reproducer. On the contrary, it demonstrates fine threads alternating on DRLVM while it always fails on RI 1.5.0_08. 

Nevertheless, I think ThreadTest is not quite correct. The spec says:

(yield) Causes the currently executing thread object to temporarily pause and allow other threads to execute.

The test should not expect that the two threads alternate. Any other thread can execute while some thread yields. And this happens most likely when a lot of threads are alive during the test run.




> [drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-2343
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2343
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: H-2343_ThreadTest.patch, ThreadYield.java
>
>
> The ThreadTest.testYield() fails approximately once per 10 runs. It fails mainly in the batch mode and usually passes when running separately.
> The attached test is an excerpt from ThreadTest but it is not an issue reproducer. On the contrary, it demonstrates fine threads alternating on DRLVM while it always fails on RI 1.5.0_08. 
> Nevertheless, I think ThreadTest is not quite correct. The spec says:
> (yield) Causes the currently executing thread object to temporarily pause and allow other threads to execute.
> The test should not expect that the two threads alternate. Any other thread can execute while some thread yields. And this happens most likely when a lot of threads are alive during the test run.

-- 
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

        

[jira] Assigned: (HARMONY-2343) [drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.

Posted by "weldon washburn (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2343?page=all ]

weldon washburn reassigned HARMONY-2343:
----------------------------------------

    Assignee: weldon washburn

> [drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-2343
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2343
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Assigned To: weldon washburn
>         Attachments: H-2343_ThreadTest.patch, ThreadYield.java
>
>
> The ThreadTest.testYield() fails approximately once per 10 runs. It fails mainly in the batch mode and usually passes when running separately.
> The attached test is an excerpt from ThreadTest but it is not an issue reproducer. On the contrary, it demonstrates fine threads alternating on DRLVM while it always fails on RI 1.5.0_08. 
> Nevertheless, I think ThreadTest is not quite correct. The spec says:
> (yield) Causes the currently executing thread object to temporarily pause and allow other threads to execute.
> The test should not expect that the two threads alternate. Any other thread can execute while some thread yields. And this happens most likely when a lot of threads are alive during the test run.

-- 
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

        

[jira] Updated: (HARMONY-2343) [drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.

Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2343?page=all ]

Elena Semukhina updated HARMONY-2343:
-------------------------------------

    Patch Info: [Patch Available]

> [drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-2343
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2343
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: H-2343_ThreadTest.patch, ThreadYield.java
>
>
> The test fails approximately once per 10 runs. It fails mainly in the batch mode and usually passes when running separately.
> The attached test is an excerpt from ThreadTest but it is not an issue reproducer. On the contrary, it demonstrates fine threads alternating on DRLVM while it always fails on RI 1.5.0_08. 
> Nevertheless, I think ThreadTest is not quite correct. The spec says:
> (yield) Causes the currently executing thread object to temporarily pause and allow other threads to execute.
> The test should not expect that the two threads alternate. Any other thread can execute while some thread yields. And this happens most likely when a lot of threads are alive during the test run.

-- 
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

        

[jira] Updated: (HARMONY-2343) [drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.

Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2343?page=all ]

Elena Semukhina updated HARMONY-2343:
-------------------------------------

    Attachment: H-2343_ThreadTest.patch

I attached the patch which fixes the test. We should just make sure that yield() does not prevent threads from successful run.

> [drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-2343
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2343
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: H-2343_ThreadTest.patch, ThreadYield.java
>
>
> The test fails approximately once per 10 runs. It fails mainly in the batch mode and usually passes when running separately.
> The attached test is an excerpt from ThreadTest but it is not an issue reproducer. On the contrary, it demonstrates fine threads alternating on DRLVM while it always fails on RI 1.5.0_08. 
> Nevertheless, I think ThreadTest is not quite correct. The spec says:
> (yield) Causes the currently executing thread object to temporarily pause and allow other threads to execute.
> The test should not expect that the two threads alternate. Any other thread can execute while some thread yields. And this happens most likely when a lot of threads are alive during the test run.

-- 
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

        

[jira] Closed: (HARMONY-2343) [drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.

Posted by "weldon washburn (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2343?page=all ]

weldon washburn closed HARMONY-2343.
------------------------------------

    Resolution: Duplicate

This bug was fixed when 2204 was committed.  Its a duplicate of 2204.

> [drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-2343
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2343
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Assigned To: weldon washburn
>         Attachments: H-2343_ThreadTest.patch, ThreadYield.java
>
>
> The ThreadTest.testYield() fails approximately once per 10 runs. It fails mainly in the batch mode and usually passes when running separately.
> The attached test is an excerpt from ThreadTest but it is not an issue reproducer. On the contrary, it demonstrates fine threads alternating on DRLVM while it always fails on RI 1.5.0_08. 
> Nevertheless, I think ThreadTest is not quite correct. The spec says:
> (yield) Causes the currently executing thread object to temporarily pause and allow other threads to execute.
> The test should not expect that the two threads alternate. Any other thread can execute while some thread yields. And this happens most likely when a lot of threads are alive during the test run.

-- 
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

        

[jira] Updated: (HARMONY-2343) [drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.

Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2343?page=all ]

Elena Semukhina updated HARMONY-2343:
-------------------------------------

    Attachment: ThreadYield.java

The test attached which demonstrates the behavior of the ThreadTest.testYield().

> [drlvm][kernel test] ThreadTest.testYield() fails intermittently on linux.
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-2343
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2343
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>         Attachments: ThreadYield.java
>
>
> The test fails approximately once per 10 runs. It fails mainly in the batch mode and usually passes when running separately.
> The attached test is an excerpt from ThreadTest but it is not an issue reproducer. On the contrary, it demonstrates fine threads alternating on DRLVM while it always fails on RI 1.5.0_08. 
> Nevertheless, I think ThreadTest is not quite correct. The spec says:
> (yield) Causes the currently executing thread object to temporarily pause and allow other threads to execute.
> The test should not expect that the two threads alternate. Any other thread can execute while some thread yields. And this happens most likely when a lot of threads are alive during the test run.

-- 
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