Write more runtime tests and fix bugs

This change adds tests for the new memory manager code particularly with
its windows support. Function call tracing now works reliably on Silicon
since our function hooker was missing new Apple self-modifying code APIs

Many tests that were disabled a long time ago on aarch64 are reactivated
by this change, now that arm support is on equal terms with x86. There's
been a lot of places where ftrace could cause deadlocks, which have been
hunted down across all platforms thanks to new tests. A bug in Windows's
kill() function has been identified.
This commit is contained in:
Justine Tunney 2025-01-01 22:25:22 -08:00
parent 0b3c81dd4e
commit f24c854b28
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
45 changed files with 550 additions and 872 deletions

View file

@ -15,7 +15,7 @@
// It is expected to invalidate the instruction cache for the
// specified range.
void __clear_cache(void *start, void *end) {
privileged void __clear_cache(void *start, void *end) {
#ifdef __aarch64__
if (IsXnu()) {
@ -59,6 +59,8 @@ void __clear_cache(void *start, void *end) {
}
__asm__ volatile("isync");
#elif defined(__x86_64__)
// do nothing
#else
compilerrt_abort();
#endif