runtime: arm64 actually has 16-byte alignment like amd64

Proof: https://godbolt.org/z/as4EM3713
Essentially, this means that there are objects on arm64 that have a
16-byte alignment and so we have to respect that when we allocate things
on the heap.
Этот коммит содержится в:
Ayke van Laethem 2022-12-15 18:31:11 +01:00 коммит произвёл Ayke
родитель e7ba07dd5a
коммит 38252e338f

Просмотреть файл

@ -9,7 +9,7 @@ const deferExtraRegs = 0
// Align on word boundary. // Align on word boundary.
func align(ptr uintptr) uintptr { func align(ptr uintptr) uintptr {
return (ptr + 7) &^ 7 return (ptr + 15) &^ 15
} }
func getCurrentStackPointer() uintptr { func getCurrentStackPointer() uintptr {