]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/gc: correct physical memory detection for OpenBSD / NetBSD
authorBrad Smith <brad@comstyle.com>
Sun, 1 Jun 2025 08:24:12 +0000 (04:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Jun 2025 02:01:07 +0000 (19:01 -0700)
commit35c1d592cd11429e402501df3ad68bcd0fb86bef
treef77945fab83b3fb7fbbbe99a132e1e9411b9b1c3
parent7014b55638da979331baf8dc31c4e1d697cf2d67
builtin/gc: correct physical memory detection for OpenBSD / NetBSD

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>
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c