1
0
mirror of https://github.com/janet-lang/janet synced 2026-06-02 10:42:24 +00:00

Remove pointer-shift on macos aarch64

macos actually works with 47-bit pointers.
This commit is contained in:
Calvin Rose
2026-03-23 13:36:58 -05:00
parent 1337baef80
commit adb7ba6633
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, macos-14, macos-15-intel ]
os: [ ubuntu-latest, ubuntu-24.04-latest, macos-latest, macos-14, macos-15-intel ]
steps:
- name: Checkout the repository
uses: actions/checkout@master
+3 -2
View File
@@ -322,8 +322,9 @@ extern "C" {
* This is needed to use nanboxing on systems with larger than 47-bit address spaces, such as many
* aarch64 systems. */
#ifndef JANET_NANBOX_64_POINTER_SHIFT
#if defined(_M_ARM64) || defined(__aarch64__)
/* All pointers, including function pointers, should be 4-byte aligned on aarch64 by default */
#if (defined(_M_ARM64) || defined(__aarch64__)) && !defined(JANET_APPLE)
/* All pointers, including function pointers, should be 4-byte aligned on aarch64 by default.
* The exception is aarch64 macos, as it uses the same 47-bit userland address-space as on amd64. */
#define JANET_NANBOX_64_POINTER_SHIFT 2
#endif
#endif