mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-03 03:02:28 +00:00
- You can now use _gc(malloc()) in multithreaded programs - This change fixes a bug where fork() on NT disabled TLS - Fixed TLS code morphing on XNU/NT, for R8-R15 registers
23 lines
470 B
C
23 lines
470 B
C
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_GC_H_
|
|
#define COSMOPOLITAN_LIBC_NEXGEN32E_GC_H_
|
|
#include "libc/nexgen32e/stackframe.h"
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
struct Garbage {
|
|
struct StackFrame *frame;
|
|
intptr_t fn;
|
|
intptr_t arg;
|
|
intptr_t ret;
|
|
};
|
|
|
|
struct Garbages {
|
|
int i, n;
|
|
struct Garbage *p;
|
|
};
|
|
|
|
int64_t __gc(void);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_NEXGEN32E_GC_H_ */
|