From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3988 invoked by alias); 26 Jan 2015 17:31:17 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 3962 invoked by uid 89); 26 Jan 2015 17:31:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 26 Jan 2015 17:31:15 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0QHVDL2004201 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 26 Jan 2015 12:31:14 -0500 Received: from anchor.twiddle.net (vpn-230-69.phx2.redhat.com [10.3.230.69]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t0QHVDXq020085; Mon, 26 Jan 2015 12:31:13 -0500 Message-ID: <54C679E0.3060200@redhat.com> Date: Mon, 26 Jan 2015 17:31:00 -0000 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Andrew Haley , libffi-discuss@sourceware.org Subject: Re: Constant trampoline pages References: <54C28ACB.8030702@redhat.com> <54C61091.1060609@redhat.com> In-Reply-To: <54C61091.1060609@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2015/txt/msg00025.txt.bz2 On 01/26/2015 02:01 AM, Andrew Haley wrote: > It looks a lot better than what we have now. I don't quite get how a > single page of allocated trampolines can suffice, though, even after > reading the code. Huh? That's why tramp-raw.c is able to re-map the trampoline page multiple times. After that you've got a normal sort of fixed-size object heap allocation problem. One example is in the tramp-heap.c file, but there are others. r~