You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe we waste a few extra bytes in the aligned space... need a "magic" marker that indicates that this was allocated by aligned_malloc(). If the sentinel matches, then we call the aligned version.
I implemented this in #91 but it is mostly just posted for review at this moment as it needs more testing. I tried it out in emutest_0007_smp.exe where I use it to allocate save restore space for AVX registers using XSAVE/XRSTOR and that will fault if memory is not 64-byte aligned, and it appears to work, but I have not done exhaustive testing yet.
Activity
phillipjohnston commentedon May 7, 2020
Maybe we waste a few extra bytes in the aligned space... need a "magic" marker that indicates that this was allocated by aligned_malloc(). If the sentinel matches, then we call the aligned version.
belmeopmenieuwesim commentedon Jun 14, 2020
👍 I would be all for this. It is good to mimic how GLIBC behaves. And I don't think the costs outweigh the benefit
larkmjc commentedon Feb 25, 2024
I implemented this in #91 but it is mostly just posted for review at this moment as it needs more testing. I tried it out in emu
test_0007_smp.exewhere I use it to allocate save restore space for AVX registers usingXSAVE/XRSTORand that will fault if memory is not 64-byte aligned, and it appears to work, but I have not done exhaustive testing yet.