Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 24587 invoked from network); 23 Aug 2006 11:18:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Aug 2006 11:18:22 -0000 Received: (qmail 97488 invoked by uid 500); 23 Aug 2006 11:18:20 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 97178 invoked by uid 500); 23 Aug 2006 11:18:19 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 97165 invoked by uid 99); 23 Aug 2006 11:18:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2006 04:18:18 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 64.74.244.71 is neither permitted nor denied by domain of geir@pobox.com) Received: from [64.74.244.71] (HELO chi.mobile-health-diary.com) (64.74.244.71) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 23 Aug 2006 04:18:18 -0700 Received: (qmail 13089 invoked from network); 23 Aug 2006 11:17:54 -0000 Received: from ool-43560edb.dyn.optonline.net (HELO ?192.168.1.102?) (geir@67.86.14.219) by b014.internal.mobile-health-diary.com with SMTP; 23 Aug 2006 11:17:54 -0000 Message-ID: <44EC3965.4090500@pobox.com> Date: Wed, 23 Aug 2006 07:17:57 -0400 From: "Geir Magnusson Jr." Reply-To: geir@pobox.com User-Agent: Thunderbird 1.5.0.5 (Macintosh/20060719) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [drlvm] problem when TM patch applied References: <44EB2CC4.1040202@pobox.com> <44EB7FEB.9030201@pobox.com> <51d555c70608221535o73c3ac76va6a261296607f556@mail.gmail.com> <200608230256.40577.gshimansky@gmail.com> <51d555c70608221638h40032910mbebe4eb76ffc416b@mail.gmail.com> <44EBB78A.7020807@pobox.com> <187bb05d0608230152p1bdd8a1ah9be4c216a2ef91fe@mail.gmail.com> <44EC2F1F.6080309@pobox.com> In-Reply-To: <44EC2F1F.6080309@pobox.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Geir Magnusson Jr. wrote: > Artem Aliev wrote: >> Gier, >> >> The DRLVM uses SIGUSR2 in thread suspend algorithm. >> hysock_select() returns EINTR error when the signal appears, and >> Socket.accept() throws exception. >> >> The New ThreadManager use thread_suspend() more extensively ( in lock >> reservation algorithm). So the problem appears more frequently. > > Excellent - I knew there had to be an explanation as to why the same > symptom appears so much faster... > >> >> Following patch to hysock.c fixes the problem in hysock. >> Probably classlib experts could provide better way to fix this problem. >> > > This seems wrong - that we're going to make it everyone else's problem > because we're using SIGUSR2. Is there a way to setup a handler such > that select() (and other things scattered about, including user native > code) don't have to worry about this? Well, a quick read of Stevens says "apparently not" :) It's been about 8 years since I did this kind of thing in anger. I suspect Dalibor has a suggestion here because of Kaffe :) geir --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org