Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlang
1216-Correct-memsup-get_os_wordsize-0-on-an-M1-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1216-Correct-memsup-get_os_wordsize-0-on-an-M1-Mac.patch of Package erlang
From bd325ff1ac42503a365f7ff5e46202fb86aa9a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org> Date: Wed, 26 May 2021 07:56:12 +0200 Subject: [PATCH] Correct memsup:get_os_wordsize/0 on an M1 Mac On a Mac with Apple Silicon, `memsup:get_os_wordsize/0` would return 32 instead of the correct 64. --- lib/os_mon/src/memsup.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/os_mon/src/memsup.erl b/lib/os_mon/src/memsup.erl index e529334226..74379003f9 100644 --- a/lib/os_mon/src/memsup.erl +++ b/lib/os_mon/src/memsup.erl @@ -575,7 +575,8 @@ get_os_wordsize_with_uname() -> "ppc64" -> 64; "ppc64le" -> 64; "s390x" -> 64; - "aarch64" -> 64; + "aarch64" -> 64; %Linux + "arm64" -> 64; %macOS _ -> 32 end. -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor