Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 62222 invoked from network); 12 Nov 2007 12:45:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2007 12:45:16 -0000 Received: (qmail 6039 invoked by uid 500); 12 Nov 2007 12:45:01 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 6021 invoked by uid 500); 12 Nov 2007 12:45:01 -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 6009 invoked by uid 99); 12 Nov 2007 12:45:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 04:45:01 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 12:45:58 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CB5BE714208 for ; Mon, 12 Nov 2007 04:44:50 -0800 (PST) Message-ID: <27213677.1194871490742.JavaMail.jira@brutus> Date: Mon, 12 Nov 2007 04:44:50 -0800 (PST) From: "Gregory Shimansky (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-5106) [drlvm][thread] os_thread_yield_other() works incorrectly on Linux In-Reply-To: <33245623.1194739550560.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gregory Shimansky reassigned HARMONY-5106: ------------------------------------------ Assignee: Gregory Shimansky > [drlvm][thread] os_thread_yield_other() works incorrectly on Linux > ------------------------------------------------------------------ > > Key: HARMONY-5106 > URL: https://issues.apache.org/jira/browse/HARMONY-5106 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Environment: Linux > Reporter: Ilya Berezhniuk > Assignee: Gregory Shimansky > Attachments: H-5106.patch, H-5106.patch > > > os_thread_yield_other() function on Linux uses sem_timedwait() to wait for response from SIGUSR2 handler. > It passes time interval =1ms to sem_timedwait(), but by documentation sem_timedwait() receives not time interval, but absolute time since 1970, so now sem_timedwait() always returns ETIMEDOUT immediately. > It's required to calculate timeout exceed absolute time by adding needed interval to current time returned by gettimeofday() or clock_gettime(CLOCK_REALTIME). > I've tried clock_gettime(CLOCK_REALTIME), it works fine. > I'm going to provide a patch soon. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.