Results 164 comments of David CARLIER

Your proposal makes sense, would be nice to come with tests before and after the change, what do you think ?

Anyhow, snmalloc already uses MADV_FREE for FreeBSD.

Out of curiosity, would the `dev` branch still fails ?

weird because the assembly is supposed to be different.

Right ... what happens if you use this change : ` uintptr_t tcb; UNUSED(ofs);UNUSED(slot); __asm__ volatile ("mrs %0, tpidr_el0" : "=r" (tcb)); res = tcb; ` Just theorical, I wish...

Yes it would be similar-ish solution if it works like : ` uintptr_t tcb; UNUSED(ofs);UNUSED(slot) __asm__ volatile ("mrs %0, tpidr_el0" : "=r" (tcb)); tcb = (uintptr_t)value; ` Thanks for your...

Too bad the changes work on Linux arm64 maybe the M1 gear needs a specific code path in this case. Just an idea, what happens if you comment line 298...

Right so maybe M1 needs a specific code path (specific register like x86 case ?). I see on other projects issues popping up about M1 here and there seems to...

I just did a run with an iPhone 6 : ![image](https://user-images.githubusercontent.com/4922778/102342587-5abbd880-3f91-11eb-989c-7fad6673a25c.png) ![image](https://user-images.githubusercontent.com/4922778/102342615-6a3b2180-3f91-11eb-82a3-cfe205c20654.png) with the actual dev but with these little changes already mentioned ![image](https://user-images.githubusercontent.com/4922778/102342698-876ff000-3f91-11eb-8992-bf95b37ef251.png)

Was wondering if, only in the case of darwin ARM devices, we would use, tpidrr0_el0 TID register instead ? tpidr_el0 always return 0 otherwise.