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.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_SCC_BODY_TEXT_LINE,URIBL_CSS autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22577 invoked from network); 26 Jun 2022 09:50:45 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 26 Jun 2022 09:50:45 -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 BDB512CFB1 for ; Sun, 26 Jun 2022 05:50:42 -0400 (EDT) (envelope-from bounce.mM704d54262c512e9fce0f9fae.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id C013529F3398; Sun, 26 Jun 2022 05:50:42 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; 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=date:from:to:message-id:mime-version :content-type:list-help:list-id:list-post:list-subscribe :reply-to:subject:content-transfer-encoding:list-unsubscribe; s= sysmsg-1; t=1656237042; bh=wmhGKZhIrZCjBntnSpMZfF83UMjGS2+Gmqmbb 6wy2I4=; b=rd/q0ELo+8aqfxP/fG5/zrK3giBG++Qk6BhymfPrQygvAj8UuqQHW 3wfD6k3YZIU/+FFml4kIAMugjs7dMqS8CtUQKBpM3cHDuyRxUNiB+kxS+CQGrMbQ owjjaoOE3Eu4pfc8aw+tgujxEHF3T7i2+Il/hldB1ExwBbxdnipZQI= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1656237042; b=ZdHWPktgYvE8B7JW9WAHYaI8YbpXmxoTcgO+P+qs/KY1nl25se nfQqZ96TZ3WjA/4PpEH1e+EtQDLWjQNoGLuahGsvjiJ5V/GqVubEROxCM0rJBEeW o/SoUyrQ9BqtlJWs83pLxUNUvGp7WQtMujQ8BmWXZ1UXRK8d/ROvE3qoU= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; 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-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); 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=date:from :to:message-id:mime-version:content-type:list-help:list-id :list-post:list-subscribe:reply-to:subject :content-transfer-encoding:list-unsubscribe; s=dkim-1; t= 1656237042; x=1656323442; bh=otqrJt0yjyO9/WbiEp1HNVtpZrzLg9rZHqo 5m1d13Dk=; b=iRfYAsdzmJE7XbuRKyrMFUPUjSSHSxt/rBi4nt6STwyQZJuOVrz txaaTqvcUPPyeFmY8Er7MocKehW4yKr++u/hA+nNukuakEpFIDtW0D1b8hI92/OL Sr6X/0NXokQ91zf7LxT4EwydMOKNAHY47F2HImNhU773g5N4pOWkHI+w= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 5C7E015CE8E8 for <9fans@9fans.net>; Sun, 26 Jun 2022 05:50:24 -0400 (EDT) (envelope-from adr@SDF.ORG) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 0EEBDB6221C; Sun, 26 Jun 2022 05:50:24 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1656237024; b=PBUsQTuB9YxAAHKznCSV4NIcuVziJCtqL7YN6NY2vqtZKQ83VN Mi9FYKDqYF8LuncP+16twRrOgEHSn+uWLQn12juaPLSIVgHjii+7p6tp1aRxX7MO Qyzvmu2/e8lPZmy8uLejSVDawZ0nfA52LOOynRittF6na+X6x/4O5lsfjswdyafH S6eYOAKHJkVhjHQTwBInl97rwi0pNSqqCAO7wFyflJlXDK5BqXqcKpl+DiZzgXHA QnJFDRjfl6DEObmPZz0V0cOhR1Be80gGXQdaOzeY2KSEd94CaGp7OjJvv+U2aM1x wrx3WQ7o4a6/PIxSu41/ENKJCM0sGUPvlFFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:message-id:mime-version :content-type; s=arcseal; t=1656237024; bh=PoRLn2NC97UcgZQ9pLFXl 1WfLuD26VNYJW9A1QDiORU=; b=A2xAKdGI2Z5D8bEBcGLZqWQmgD1HRJ06XM50e OVM8v3GvgrEOikksaleAYbzkVEtUBUTPkSbFDPxqvcGq/O8dpX9TUmOjWeEFQNb7 RgHiLHhoMXu305ob0kzrIOyzr2mXHVRavIwZo6K43B00w0fzwSDuPihk6c2kxlcz kr6JMzQsEEnfxuAaVKcDoYMDT3Z0/r5tsC0R+fZ7vjPrhWEOOe8y6McU/5eFZqsM BWco1ON4DQw515BAffgKZFwtAJD/Mi4TK0OjhOzKrjCq7Rp3zXAzHZna4rkCQSam ynZkiZ9fVb7nEr540z6Q8cDhRzy+VetmwuYHm9ccrkVKKmxDg== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); 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: gggruggvucftvghtrhhoucdtuddrgedvfedrudegfedgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuf fkgggtsehttdertddttddvnecuhfhrohhmpegrughruceorggurhesufffhfdrqfftifeq necuggftrfgrthhtvghrnhepvddtieelffevteevleelleeuhfeutdehvdfhjedvfeduhe eukeelhfeigfetveeinecukfhppedvtdehrdduieeirdelgedrvdegpddvtdehrdduieei rdelgedrudeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvd dthedrudeiiedrleegrddvgedphhgvlhhopehmgidrshgufhdrohhrghdpmhgrihhlfhhr ohhmpeeorggurhesufffhfdrqfftifeq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (sdf.org: 205.166.94.24 is authorized to use 'adr@SDF.ORG' in 'mfrom' identity (mechanism 'ip4:205.166.94.0/24' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="adr@SDF.ORG"; helo=mx.sdf.org; client-ip=205.166.94.24 Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Sun, 26 Jun 2022 05:50:22 -0400 (EDT) (envelope-from adr@SDF.ORG) Received: from sdf.org (IDENT:adr@sdf.org [205.166.94.16]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 25Q9oK9o020358 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for <9fans@9fans.net>; Sun, 26 Jun 2022 09:50:20 GMT Received: from localhost (adr@localhost) by sdf.org (8.15.2/8.12.8/Submit) with ESMTP id 25Q9oJZt008883 for <9fans@9fans.net>; Sun, 26 Jun 2022 09:50:19 GMT Date: Sun, 26 Jun 2022 09:50:19 +0000 (UTC) From: adr To: 9fans@9fans.net Message-ID: <7eea6efa-711a-31dc-031-dc5c2eddce3d@SDF.ORG> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 6926e30a-f535-11ec-ae97-abbe7e22302a Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZTFiZThkYzcyNzM4MjU4ZC1NNzA0ZDU0MjYyYzUxMmU5ZmNlMGY5?= =?UTF-8?B?ZmFlPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Subject: [9fans] _threadmalloc() size>100000000; shouldn't be totalmalloc? Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M704d54262c512e9fce0f9fae:1:G0bNoNZo1GhIbdrf4C31otUkOQxyentuQbdT_4pP2PI /sys/src/libthread/lib.c [...] void* _threadmalloc(long size, int z) { void *m; m =3D malloc(size); if (m =3D=3D nil) sysfatal("Malloc of size %ld failed: %r", size); setmalloctag(m, getcallerpc(&size)); totalmalloc +=3D size; if (size > 100000000) { fprint(2, "Malloc of size %ld, total %ld\n", size, totalmal= loc); abort(); } if (z) memset(m, 0, size); return m; } [...] Shouldn't the if statement test the size of totalmalloc before the abort? That size, 100M for internal allocations? It has to be totalmalloc, doesn't it? If not this if statement should be after testing the success of the malloc. Am I missing something? adr. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te1be8dc72738258d-M704d5= 4262c512e9fce0f9fae Delivery options: https://9fans.topicbox.com/groups/9fans/subscription