Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 27161 invoked from network); 1 Apr 2009 22:47:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Apr 2009 22:47:44 -0000 Received: (qmail 35563 invoked by uid 500); 1 Apr 2009 22:47:43 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 35479 invoked by uid 500); 1 Apr 2009 22:47:42 -0000 Mailing-List: contact dev-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 dev@harmony.apache.org Received: (qmail 35468 invoked by uid 99); 1 Apr 2009 22:47:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 22:47:42 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alexei.fedotov@gmail.com designates 209.85.218.174 as permitted sender) Received: from [209.85.218.174] (HELO mail-bw0-f174.google.com) (209.85.218.174) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 22:47:31 +0000 Received: by bwz22 with SMTP id 22so254110bwz.36 for ; Wed, 01 Apr 2009 15:47:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=uK9fzZfWwXkvQr1brS1QQGn0VTWXO4NdhfoRW6poYXU=; b=II8wdWXBJHSg3zgUiVWmr03QSJRBOuKa3dCRY6E0doaNZie8SlhR9ds2JGa8IQFeJw O0Fx51EHoHWCsFeYyekrwklvP0uyGBR58XW21b2dDCp69SYHn2Mi7vxXguayqn7fXMrZ vC8FqDmobcb9v8rW4fe3+W7KkVRTLLDkfPsBQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ZC/Qb+ywwnKa+DhbcNWVhzJIzjxsAKxxvOGagZU6C7Qu5E9yUYe+2KpP28vnhr1DVf qH4juoekGVQAOD0nUsE11xSmi7bn/ag17hWenKbzI1ylxaLd0EUoaijLhgSq5j5TiSUx 17noJCEAiBJW7KolKOcph+2JgjZ6EM/7tN3Uk= MIME-Version: 1.0 Received: by 10.103.131.18 with SMTP id i18mr3081266mun.74.1238626029714; Wed, 01 Apr 2009 15:47:09 -0700 (PDT) In-Reply-To: <49D3648D.5030500@gmail.com> References: <49D0E482.8050909@gmail.com> <49D0F382.2000503@googlemail.com> <49D1BD88.5080304@gmail.com> <49D3648D.5030500@gmail.com> Date: Thu, 2 Apr 2009 02:47:09 +0400 Message-ID: Subject: Re: [M9] Last blocker From: Alexei Fedotov To: dev@harmony.apache.org Content-Type: multipart/alternative; boundary=001636416b4382be8404668618fb X-Virus-Checked: Checked by ClamAV on apache.org --001636416b4382be8404668618fb Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Hello, Tim, I was able to do a partial research on unix/hysock.c 1. The patch [1] shows that when select() was used Artem Aliev had prepared a proper patch with while (result =3D=3D -1 && errno =3D=3D EINTR). 2. Currently the logic of select) call in unix/hysock.c is different, with no while loop. [1] https://issues.apache.org/jira/browse/HARMONY-1904 2009/4/1 Tim Ellison > Alexei Fedotov wrote: > > As Mark said [1], the main difference in socket handling between jvms > > is system call interruption. DRLVM sends termination signals to system > > calls before stop the world garbage collection, hence they should be > > restarted (i.e. any system call should be put in a loop). > > Without getting into a debate about the virtues of interrupting an OS > call for GC purposes , can you point me towards any examples of > native code that correctly handles these signals today? I'd like to > reuse a working example rather than hack something up. > > Regards, > Tim > > > Thanks! > > > > [1] http://markmail.org/thread/kbs7bfcnkcfggyc4 > > --=20 With best regards / =D3 =CE=C1=C9=CC=D5=DE=DB=C9=CD=C9 =D0=CF=D6=C5=CC=C1= =CE=C9=D1=CD=C9, Alexei Fedotov / =E1=CC=C5=CB=D3=C5=CA =E6=C5=C4=CF=D4=CF=D7, http://www.telecom-express.ru/ http://people.apache.org/~aaf/ --001636416b4382be8404668618fb--