mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-03 11:12:27 +00:00
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:
parent
0b3c81dd4e
commit
f24c854b28
45 changed files with 550 additions and 872 deletions
4
third_party/compiler_rt/clear_cache.c
vendored
4
third_party/compiler_rt/clear_cache.c
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue