]> git.99rst.org Git - git.git/commit
builtin/gc: correct physical memory detection for OpenBSD / NetBSD
authorBrad Smith <redacted>
Sun, 1 Jun 2025 08:24:12 +0000 (04:24 -0400)
committerJunio C Hamano <redacted>
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 <redacted>
Reviewed-by: Collin Funk <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/gc.c
git clone https://git.99rst.org/PROJECT