From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by sourceware.org (Postfix) with ESMTPS id 9D332385828D for ; Fri, 22 Jul 2022 21:35:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9D332385828D Received: by mail-ot1-x334.google.com with SMTP id k25-20020a056830169900b0061c6f68f451so4254778otr.9 for ; Fri, 22 Jul 2022 14:35:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=s9ww9frJYvPB19HcMbBbaN5PAnX5aK1Sr5fvmT7yOnw=; b=KuTYYapnYjhLjAzvl5c+Vmk3Ou4hP3mULN4z9VrOZiFX1VfFDyCDhhpQ+P+KCrBLXz ImKYFnETbgF5HCJjZHTa0ajaZIWQ/oQ5+ntWiYJmpbK2H6uczUQ46LUtLOxhQ4E5/rrE epoU41TN+Yyndh3kpj8fcU/G3mW+JYT+PO2ZKpMcilta4AE5MCnF2M67R8Oqtvd0EM/r XSah5L7eD27QL5AEJtGbSa4aahh/N/mAvr+8Q9ax6LDPyis2k+Eyl4+l/67hgSFHnpkd 93tkUOLqbEPBxRmUcEF+vvMQFJaERUAy6PR/myY/aG4ixd285k4Cwf3FfhT3lsi+nIsX lk0Q== X-Gm-Message-State: AJIora/sKRbcSEj3d8g828UFVz/G8rDpWpKN10ntkZrop+x3Rne7Uz4K ekJ/Vfn00T7ECwskG3kKZZEFFg== X-Google-Smtp-Source: AGRyM1vZ2e0A6AcZqE7eOvXBPCv6B64VaOE+kvmDfRnmHRAa+GHD1hU53yQGr3quuZYua8NpTw9p2A== X-Received: by 2002:a9d:6d85:0:b0:61c:c75b:8033 with SMTP id x5-20020a9d6d85000000b0061cc75b8033mr754902otp.20.1658525755803; Fri, 22 Jul 2022 14:35:55 -0700 (PDT) Received: from ?IPV6:2804:431:c7cb:8ded:c15d:b142:fa26:49e5? ([2804:431:c7cb:8ded:c15d:b142:fa26:49e5]) by smtp.gmail.com with ESMTPSA id v13-20020a54448d000000b0033aa53c549dsm2226364oiv.25.2022.07.22.14.35.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Jul 2022 14:35:55 -0700 (PDT) Message-ID: Date: Fri, 22 Jul 2022 18:35:52 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.0.3 Subject: Re: [PATCH v12 0/9] Add arc4random support Content-Language: en-US To: =?UTF-8?Q?Cristian_Rodr=c3=adguez?= Cc: libc-alpha@sourceware.org, Florian Weimer , Carlos O'Donell , Szabolcs Nagy References: <20220722122137.3270666-1-adhemerval.zanella@linaro.org> From: Adhemerval Zanella Netto Organization: Linaro In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2022 21:35:58 -0000 On 22/07/22 16:12, Cristian Rodríguez wrote: > On the BSDs the state is allocated with mmap...that would allow it to > safely use it within the malloc implementation..(or paths that should > not call malloc for whatever reason) > just wondering why changing was a choice. Because it was easiest solution to provide lazy allocation for the internal buffer, on a previous version I added on TCB but Florian asked to move to a dynamic buffer because it was too large to impose on every thread (I tend to agree). I plan to revise and maybe add a custom allocator so we can also use MADV_DONTFORK.