Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 62668 invoked from network); 4 May 2008 09:20:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 May 2008 09:20:51 -0000 Received: (qmail 18437 invoked by uid 500); 4 May 2008 09:20:53 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 18411 invoked by uid 500); 4 May 2008 09:20:53 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 18400 invoked by uid 99); 4 May 2008 09:20:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 May 2008 02:20:53 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 May 2008 09:20:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BFFEB234C10A for ; Sun, 4 May 2008 02:16:55 -0700 (PDT) Message-ID: <1169549256.1209892615785.JavaMail.jira@brutus> Date: Sun, 4 May 2008 02:16:55 -0700 (PDT) From: "Pavel Pervov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-5801) [drlvm][thread][regression] Thread.yield intermittently does not work. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [drlvm][thread][regression] Thread.yield intermittently does not work. ---------------------------------------------------------------------- Key: HARMONY-5801 URL: https://issues.apache.org/jira/browse/HARMONY-5801 Project: Harmony Issue Type: Bug Components: DRLVM Environment: Linux Reporter: Pavel Pervov The following test recently started to fail intermittently on DRLVM: class yield { int tPass = 0; class T extends Thread { public void run() { tPass++; } } void test() { T t = new T(); int numYields = 2000; try { t.setPriority(Thread.MAX_PRIORITY); t.start(); } catch(Throwable e) { System.out.println("Exception: " + e); } while(numYields > 0 && tPass == 0) { numYields--; Thread.currentThread().yield(); } if(tPass == 0) { System.out.println("FAILED"); } else { System.out.println("PASSED"); } } public static void main(String[] args) { new yield().test(); } } The test passes stably on RI. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.