mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 17:58:30 +00:00
Get garbage collector working on aarch64
Garbage collection will now happen on arm64 when a function returns, rather than kicking the can down the road to when the process exits. This change also does some code cleanup and incorporates suggestions
This commit is contained in:
parent
9793d3524f
commit
01fd655097
16 changed files with 144 additions and 323 deletions
|
@ -86,9 +86,7 @@ static void DeferFunction(struct StackFrame *frame, void *fn, void *arg) {
|
|||
g->p[g->i].arg = (intptr_t)arg;
|
||||
g->p[g->i].ret = frame->addr;
|
||||
g->i++;
|
||||
#ifdef __x86_64__
|
||||
frame->addr = (intptr_t)__gc;
|
||||
#endif
|
||||
}
|
||||
|
||||
// the gnu extension macros for _gc / _defer point here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue