mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
Inline set_field in mt-gcbench
This commit is contained in:
parent
095515eaed
commit
10017daa0c
1 changed files with 2 additions and 2 deletions
|
@ -144,8 +144,8 @@ static void allocate_garbage(struct thread *t) {
|
|||
}
|
||||
}
|
||||
|
||||
static void set_field(struct gc_mutator *mut, Node *obj,
|
||||
Node **field, Node *val) {
|
||||
static inline void set_field(struct gc_mutator *mut, Node *obj,
|
||||
Node **field, Node *val) {
|
||||
gc_write_barrier(mut, gc_ref_from_heap_object(obj), sizeof(Node),
|
||||
gc_edge(field),
|
||||
gc_ref_from_heap_object(val));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue