mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-13 17:20:21 +02:00
Whippet can trace conservative roots
Next up, enabling it via the makefiles.
This commit is contained in:
parent
deed415a06
commit
1944b54a19
8 changed files with 311 additions and 73 deletions
17
gc-conservative-ref.h
Normal file
17
gc-conservative-ref.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef GC_CONSERVATIVE_REF_H
|
||||
#define GC_CONSERVATIVE_REF_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct gc_conservative_ref {
|
||||
uintptr_t value;
|
||||
};
|
||||
|
||||
static inline struct gc_conservative_ref gc_conservative_ref(uintptr_t value) {
|
||||
return (struct gc_conservative_ref){value};
|
||||
}
|
||||
static inline uintptr_t gc_conservative_ref_value(struct gc_conservative_ref ref) {
|
||||
return ref.value;
|
||||
}
|
||||
|
||||
#endif // GC_CONSERVATIVE_REF_H
|
Loading…
Add table
Add a link
Reference in a new issue