From patchwork Fri Dec 6 18:26:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 298173 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B507A2C00B9 for ; Sat, 7 Dec 2013 05:26:48 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=fpfbKjzP+HOrbyhq4PAtr/HFekjmnku1feU1AKuQsyA1Dh6Y7O KTiPpXFjNLXMxZze9laJC+KQWJKVXjRw5NqNoLRc9fYn20QzFlDx0yM9w/T9K+io QsqMCudIPzqQeYuN0PtTztAmJcoqKLgFdx4rV3B0i0lnjfQoqi0OBmOGY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=XSx5RCrzIyjBvucbcXCx1FeDDOE=; b=moVOg+GkIabN5VTWHHow QgpUHTcB1+yli3Y2/AztKqXskDCevVcO9GrKoFGvcCUps17xYHYpLSI/EiqDNY1j rQpHAH/ARi/9GGehmeGks3zXtoFykaxaVopqRaltjP273cL5qVowRyOA0UFliVN1 E1QYGdilTCexZwocUJlaWWE= Received: (qmail 18471 invoked by alias); 6 Dec 2013 18:26:41 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 18451 invoked by uid 89); 6 Dec 2013 18:26:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS, T_TVD_MIME_NO_HEADERS autolearn=ham version=3.3.2 X-HELO: mail-qc0-f172.google.com Received: from Unknown (HELO mail-qc0-f172.google.com) (209.85.216.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 06 Dec 2013 18:26:40 +0000 Received: by mail-qc0-f172.google.com with SMTP id e16so754657qcx.3 for ; Fri, 06 Dec 2013 10:26:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :mime-version:content-type; bh=nBi3S6/YWpN0nz6Kdyzfw4PWZGxu2uzYukvQxS7LVDI=; b=T59iHSR33jhldc5wPzRPHEnzFzqswFKhSB2m0qANZs8MSx8FQToFZ+BGBsJgjqMIry km6aZj+Btb2GC7eoi8N4HR0KLAlDtb6lNC527Zc2BSKl8HFha3FXoskXvvOhRSqiq2Nk Rn3yBaX1rZRVHr+urMoCf51/avOGU+2LugdTLo3iel0aLv/rQ1rEaJ8DHu0b1ksTn9cg D8AvIu7oaTyb9YbEvAvNulnVyiVn2b0xkPGa9bjqM/cSiv4TV23l7bSgq/D2SWJdUPLl 6u1gjj09p2//cgv8xvmbiFplPO7/XwIjRzFMmXvAIpW0VuWLFcOH637iW9M78izdVluY Rjyw== X-Gm-Message-State: ALoCoQm35bkKAaV5vgqmPHGjb04SgsDgsotV3wZf6SHIerxEfTs5Tf0voH4zvjbCrJsVzv7pshvgeVLq7WqmXDZRecCQZbP+CwqiOLLB9PP+2JBItWg90N/hcx03nmM6WxiIW8LYwEt3CrBD0yIoAT1lj+mDIvhHs+N8W7j3Vt7/9FpjPUFWkcua6HvvOorzZb5aY2v3oktyErEIkn1Ql+r/YbuHXFDgCg== X-Received: by 10.49.15.227 with SMTP id a3mr8946724qed.66.1386354391506; Fri, 06 Dec 2013 10:26:31 -0800 (PST) Received: from iant-glaptop.roam.corp.google.com.google.com ([2620:0:1000:147c:280a:3377:ff:c80a]) by mx.google.com with ESMTPSA id u17sm40813841qeb.4.2013.12.06.10.26.30 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 06 Dec 2013 10:26:30 -0800 (PST) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Cc: ro@gcc.gnu.org Subject: libgo patch committed: Non-futex system fix Date: Fri, 06 Dec 2013 10:26:28 -0800 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 X-IsSubscribed: yes This patch to libgo fixes the scheduler in the current libgo for systems that do not use futexes, such as Solaris. I fixed the futex code a while back, but I managed to forget to fix the non-futex code. This is PR 59408. Committed to mainline. Ian diff -r cc2d51f8c87a libgo/runtime/lock_sema.c --- a/libgo/runtime/lock_sema.c Tue Dec 03 17:34:17 2013 -0800 +++ b/libgo/runtime/lock_sema.c Fri Dec 06 10:23:12 2013 -0800 @@ -152,8 +152,12 @@ m = runtime_m(); + /* For gccgo it's OK to sleep in non-g0, and it happens in + stoptheworld because we have not implemented preemption. + if(runtime_g() != m->g0) runtime_throw("notesleep not on g0"); + */ if(m->waitsema == 0) m->waitsema = runtime_semacreate();