git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] builtin/gc: correct physical memory detection for OpenBSD / NetBSD

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 2, 2025, 02:00 UTC
Message-ID
<xmqqr002vr66.fsf@gitster.g>
In-Reply-To
<87h60z6i5o.fsf@gmail.com>
Collin Funk <collin.funk1@gmail.com> writes:
Show 16 quoted lines
> Hi Brad,
>
> You wrote:
>
>> OpenBSD / NetBSD use HW_PHYSMEM64 to detect the amount of physical
>> memory in a system. HW_PHYSMEM will not provide the correct amount
>> on a system with >=4GB of memory.
>>
>> Signed-off-by: Brad Smith <brad@comstyle.com>
>> ---
>> builtin/gc.c | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> I confirm this patch is correct.
>
> Reviewed-by: Collin Funk <collin.funk1@gmail.com>
Thanks (also thanks for the online_cpus() one).
Previous: Collin Funk
Message 2 of 2 in “Re: [PATCH] builtin/gc: correct physical memory detection for OpenBSD / NetBSD”
  1. Collin FunkJun 2, 2025
  2. Junio C HamanoJun 2, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.