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=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28300 invoked from network); 28 Jun 2022 14:33:21 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 28 Jun 2022 14:33:21 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob1.topicbox.com (Postfix) with ESMTP id 58C9F273AB for ; Tue, 28 Jun 2022 10:33:20 -0400 (EDT) (envelope-from bounce.mM5755b12d8fc8f5fc46f51c97.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 606B62A46097; Tue, 28 Jun 2022 10:33:20 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=aySpsMuM header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=crossd@gmail.com smtp.helo=mail-oi1-f170.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1656426800; bh=JonI5YicVyMJJl2h hb7XQrfHYG5xSf3CNfYXZbW2PF4=; b=kHZspoqcP9MyGkKKh7BZgKFuOtT01jLi I7xaD58+pl6ONWGkNJUTejgJLGn26bt/Ihg08PqRoBE8xBvYlobkQMKpWQIsgMlM QFtAabGT3xBSlFWg4dEfWIID85Vo14GYlscDYhRxb5Nwmikt0XPF5QR5KUqwxkJC tk1+bFOBg0Q= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1656426800; b=VxnMOnsKsu2/6Q3PLARFo/Qdpszd9QFz26MP4mx/pJTDCq6ppX GKnONzsO6wFenGfN58ZihPg9cBgDrMBfQtvkFfyXK03Xaus0wOr6UnIlE+rIzkqI ZGld8cTuNDxsCEyx+D8a2UPYDPci5qLcpmH1Q+QhcPN5AGLKoRyThgE9Y= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=aySpsMuM header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=crossd@gmail.com smtp.helo=mail-oi1-f170.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=aySpsMuM header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.167.170 (mail-oi1-f170.google.com); spf=pass smtp.mailfrom=crossd@gmail.com smtp.helo=mail-oi1-f170.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=1vrz7utj; x-me-sender=none; x-ptr=pass smtp.helo=mail-oi1-f170.google.com policy.ptr=mail-oi1-f170.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; t=1656426800; x=1656513200; bh=gUeQDnhKHTSKK8ZiOo6ZmhWP0tWaihsn rh36ehSbB8g=; b=WphcDwxTH5WX31Dh8ZnHY8ndQlapWCq9yo4lahdl61OIwln5 OP7UWcTQ+Z18JNrqqzBXJ0IqvB8lbkk65VWsoVtAuGr4/EFl7d86WfhKZpmR3YHN 5DvRYsq4zrRXHECugR5xKQB5XGIFim1bLsyjJlGCjFhN/Q6N/Nfic6QQZRA= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 238852A45C70 for <9fans@9fans.net>; Tue, 28 Jun 2022 10:33:00 -0400 (EDT) (envelope-from crossd@gmail.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id F1460BDE836; Tue, 28 Jun 2022 10:32:59 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1656426779; b=w2nWMe/DS/m+I1lWxG0mnvLt/JMdOY21JLyoQkr9n5XprZvYj8 koMGucGaeqFcH2eVcUTDJ+TZqHDmoVuMHCVdJK4/y7k3n6eL9m/HEwTRuATrJ0N0 HLQ+OiwzeVLTcMIwHclUCRU8tGA0PT1fA1WHSoqpIe+7CmZZg3ENbgiqxc3ztG58 hFFLUoYkhIISRcrCtnVv5KbWCY298jX0gVA6BwrzRJhpB/XJxMlM4cCHAgwmYJ9G 329yp+WxKoQJDKuB/s3fkfzOVTP/F4jxrexq8CCeBGGuXoAuqTZroqTzrZEGECsE HZPNgO+wn/AzibgZDPxTosbghlsv0tuIZHbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1656426779; bh=PItH6hrtinCN0+r9slb0KPYkJtFvXbqCfAkpzY5dFjs=; b=dge32//yn7xL LMt+8ta4EJ3MFkFbEl2oJZU+9EN+3LG0Ig8dpvc2ykOyhJ+ICi7kmvN7g9yt/ZE0 G7tGiBNdEcQDOlNt1NDzAf4NInMlXMEB++4fi/1mn1OTyuzGnnc6atV4Mb17Xb8a RSay75+KlD+JXh8dm/aEyeV5iSmS7DQpa/ogWh7rtZp8O5DGvXYCki1Hej1M4zRo JhHI1hHINoHZKMpI4pSx0+I2jd6P4hUjIn8NBmzqZMN0GZgNRkwpl2klQxmytx6l ZmOX0WYom3rUgoDCIEGOHCCU7csJQHl8Rk0rfcVojih0f/zhci+YSxQ2QfkBZ/Ub Nh04aZIlkA== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=aySpsMuM header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.167.170 (mail-oi1-f170.google.com); spf=pass smtp.mailfrom=crossd@gmail.com smtp.helo=mail-oi1-f170.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=1vrz7utj; x-me-sender=none; x-ptr=pass smtp.helo=mail-oi1-f170.google.com policy.ptr=mail-oi1-f170.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvfedrudegjedgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeggfhgjhf ffkffuvfgtsehttdertddttdejnecuhfhrohhmpeffrghnucevrhhoshhsuceotghrohhs shgusehgmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeehvddtgffghefgudehie fhvefffeegudeigedvudegveefgfdulefgvddvhfevudenucfkphepvddtledrkeehrddu ieejrddujedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvd dtledrkeehrdduieejrddujedtpdhhvghlohepmhgrihhlqdhoihduqdhfudejtddrghho ohhglhgvrdgtohhmpdhmrghilhhfrhhomhepoegtrhhoshhsugesghhmrghilhdrtghomh eq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'crossd@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="crossd@gmail.com"; helo=mail-oi1-f170.google.com; client-ip=209.85.167.170 Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Tue, 28 Jun 2022 10:32:59 -0400 (EDT) (envelope-from crossd@gmail.com) Received: by mail-oi1-f170.google.com with SMTP id be10so17441930oib.7 for <9fans@9fans.net>; Tue, 28 Jun 2022 07:32:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=PItH6hrtinCN0+r9slb0KPYkJtFvXbqCfAkpzY5dFjs=; b=1vrz7utjMtV/speA8EzRyhgculcdxTDnaW6gBUjygeq3kjRXckkA0dMhPOP0u/klbV 14lsPwR9sKrGw0pdYEBr1bKBpp3UKHAeDSqyOGmwbYqk0XexUc8nlMSIfDKOOjFbV6W7 r1EwaOjk4iBuZ9Bq58SNSWS0hWlZrZGPNolD8UXoLjDyhWGGFnXcN4/pkYZSCMIkDlwU vvf6Vq6KKYyXbww2iTq7BPY21kYL+myOHH/wGHcubVAKcvavI7LC10zvbOULXLqwba96 EqNq06xDio1b24l8CYjYOpJP1B2bm9SI24OSmn4Nijfk5LKdUSid/C0TO7D5edX3shUL UpMw== X-Gm-Message-State: AJIora9nswrOrJUONyNUWfyMk0eAC+bIBE0Rm+nmIUu0j8qPSmkw6Cab 9IUu72dGxDM26VjRodm9cFJjkAGyOldNNCc9A4fHGmdk X-Google-Smtp-Source: AGRyM1vDp9YmjXcQ9s0hS+pRpqLlenYr0J8yuMxolI4tNH5WscYH7NXYYobucCqCxQZGU2sa644wWZEIP0m4X8KKzM4= X-Received: by 2002:a05:6808:1b12:b0:335:9379:d554 with SMTP id bx18-20020a0568081b1200b003359379d554mr2119195oib.278.1656426778333; Tue, 28 Jun 2022 07:32:58 -0700 (PDT) MIME-Version: 1.0 References: <7eea6efa-711a-31dc-031-dc5c2eddce3d@SDF.ORG> <7f0986f-5958-de7-68b6-8cd49f94e191@SDF.ORG> In-Reply-To: From: Dan Cross Date: Tue, 28 Jun 2022 10:32:22 -0400 Message-ID: Subject: Re: [9fans] Re: _threadmalloc() size>100000000; shouldn't be totalmalloc? To: 9fans <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 3d78b36c-f6ef-11ec-bf63-d579c428abc7 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZTFiZThkYzcyNzM4MjU4ZC1NNTc1NWIxMmQ4ZmM4ZjVmYzQ2ZjUx?= =?UTF-8?B?Yzk3Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M5755b12d8fc8f5fc46f51c97:1:8Y7kHk9S0EdYxzYzcL247mm1uXa1vr9SVPaYZzDwyw0 On Tue, Jun 28, 2022 at 10:22 AM adr wrote: > On Tue, 28 Jun 2022, Dan Cross wrote: > > [snip] > > Given the name of the function (`_threadmalloc`), I'd guess that this i= sn't > > intended for general use, but rather, for the internal consumption of t= he > > thread library, where indeed such a large allocation would likely be an > > error (bear in mind this code was developed on 32-bit machines with RAMs > > measured in Megabytes, not Gigabytes). > > No, it's used also when creating a channel and setting a thread's > stack size. You mean by `newthread` and `chancreate`? Those are part of the thread library. Notice that there are no callers outside of /sys/src/libthr= ead. - Dan C. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te1be8dc72738258d-M5755b= 12d8fc8f5fc46f51c97 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription