mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
Add gc_safepoint_mechanism gc attr
This commit is contained in:
parent
41591d8722
commit
d56356fec7
4 changed files with 18 additions and 0 deletions
|
@ -50,4 +50,8 @@ static inline size_t gc_write_barrier_card_size(void) {
|
|||
GC_CRASH();
|
||||
}
|
||||
|
||||
static inline enum gc_safepoint_mechanism gc_safepoint_mechanism(void) {
|
||||
return GC_SAFEPOINT_MECHANISM_SIGNAL;
|
||||
}
|
||||
|
||||
#endif // BDW_ATTRS_H
|
||||
|
|
|
@ -37,4 +37,10 @@ static inline enum gc_write_barrier_kind gc_write_barrier_kind(size_t obj_size)
|
|||
static inline size_t gc_write_barrier_card_table_alignment(void) GC_ALWAYS_INLINE;
|
||||
static inline size_t gc_write_barrier_card_size(void) GC_ALWAYS_INLINE;
|
||||
|
||||
enum gc_safepoint_mechanism {
|
||||
GC_SAFEPOINT_MECHANISM_COOPERATIVE,
|
||||
GC_SAFEPOINT_MECHANISM_SIGNAL,
|
||||
};
|
||||
static inline enum gc_safepoint_mechanism gc_safepoint_mechanism(void) GC_ALWAYS_INLINE;
|
||||
|
||||
#endif // GC_ATTRS_H
|
||||
|
|
|
@ -52,4 +52,8 @@ static inline size_t gc_write_barrier_card_size(void) {
|
|||
GC_CRASH();
|
||||
}
|
||||
|
||||
static inline enum gc_safepoint_mechanism gc_safepoint_mechanism(void) {
|
||||
return GC_SAFEPOINT_MECHANISM_COOPERATIVE;
|
||||
}
|
||||
|
||||
#endif // SEMI_ATTRS_H
|
||||
|
|
|
@ -57,4 +57,8 @@ static inline size_t gc_write_barrier_card_size(void) {
|
|||
return 256;
|
||||
}
|
||||
|
||||
static inline enum gc_safepoint_mechanism gc_safepoint_mechanism(void) {
|
||||
return GC_SAFEPOINT_MECHANISM_COOPERATIVE;
|
||||
}
|
||||
|
||||
#endif // WHIPPET_ATTRS_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue