From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20283 invoked from network); 17 Aug 2020 19:29:24 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 17 Aug 2020 19:29:24 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 6384E9E259; Tue, 18 Aug 2020 05:28:53 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 3B7B59E190; Tue, 18 Aug 2020 05:28:35 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="OEfE4GFc"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 5AC6A9CAB3; Tue, 18 Aug 2020 05:28:30 +1000 (AEST) Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com [209.85.217.46]) by minnie.tuhs.org (Postfix) with ESMTPS id 7D13E9C8BB for ; Tue, 18 Aug 2020 05:28:29 +1000 (AEST) Received: by mail-vs1-f46.google.com with SMTP id a1so8871145vsp.4 for ; Mon, 17 Aug 2020 12:28:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=VoKMHeaUdX86iqiAkJEBPFSJi3hFyogv1uqJLZT/Uto=; b=OEfE4GFcXG8A1qRvcHYJuSqsIumqikWi9qKDoGQkiuHzMqIekrjv/JdGQFEfDa4xff ecntBuYqt3oXPykvUJfttkC95xmR/6U/NTeZb+BdriQpriCNx5bqxC27SamMYE7NzZ4I C1GOc0esoPyo69mNWT8LEVmL5cVzPykmg2iKtokYPtdaRYf1wmCIDlgcp3qk/tWF+5qX jE+11lga5kx0Zqa7ve8Vn0x7RrOD/0ggf9UANFtinVJRH5ZPJAurlgxlWdhRHUaMSTWj OEeHIOLcA6zLqfmEfCAilKuGTo2DoK0DqmEEx+V3JXzLvlkxWQKLjKzhJyw50OdglAec n4Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=VoKMHeaUdX86iqiAkJEBPFSJi3hFyogv1uqJLZT/Uto=; b=KaW0VZsJlmR3jXEOBhc2V9qGJdwaPN7hCoeLvhcstkiLsHYwtCAaGbfpxsSWJ9WZQe S2BKf/49ZDsl025pZEEcOaqA0hVqxt7+vK0XqJijm0r2WqxqHN6n2f9OC2jKEa2Q+zpx s8urDO/ocZcM74y36GRKSa7ys+aVRbZGnx/paq+LEHBGIut9JhQIJURzUHUQMHa7FGhC L0AgcirbQU+Bb7RSo0YkzN/1D8uBfMjY5BRsKIBCJqBIPkjvHehLF7+kx6OzS3URNGom jPTDtzUmMfdCnmvV/OoqCRecG6mBIUfP8TkQZSboC6iNBV+T/i50W0mZJjMyq3fwzzHn CdMA== X-Gm-Message-State: AOAM5321yrvQ+UNVQHPGQhP60honyE5TNZEOCPwQIJ5+FIHirR1uC7hg JPIuvj2aE9AAi79TolntLUJOkPd1ZQSiKCYyhi4= X-Google-Smtp-Source: ABdhPJyBYqa0DVMuoi7p0oIXUJkK4r8B3qK+fhYQCgLkPBJop5qGPSHYs7iu3bNE2GwVZ5dDSKQKjedrUWDsIiAp8pA= X-Received: by 2002:a67:68d2:: with SMTP id d201mr9326027vsc.186.1597692508750; Mon, 17 Aug 2020 12:28:28 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:48e9:0:0:0:0:0 with HTTP; Mon, 17 Aug 2020 12:28:27 -0700 (PDT) In-Reply-To: References: <20200817020224.104B518C095@mercury.lcs.mit.edu> From: Paul Winalski Date: Mon, 17 Aug 2020 15:28:27 -0400 Message-ID: To: Jim Geist Content-Type: text/plain; charset="UTF-8" Subject: Re: [TUHS] Memory management in Dennis Ritchie's C Compiler X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society , Noel Chiappa Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" On 8/17/20, Jim Geist wrote: > When did mmap(2) come about? Another thing I've seen is building a small > block allocator on top of that. You can guarantee that all your objects are > nicely collected into the same set of pages for locality with very little > overhead. > mmap(2) certainly can be used to allocate blocks for the mini-heap itself, but you still have to write your own equivalents of malloc() and free() to allocate data structures within the mini-heap. The nice thing about VMS heap zones and Microsoft's private heaps is that you get the malloc()/free() layer off-the-shelf; you don't have to roll your own. -Paul W.