diff options
author | Peter Zhu <peter@peterzhu.ca> | 2024-04-24 12:18:48 -0400 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2024-04-25 09:25:33 -0400 |
commit | f248e1008a8f79cca801b27d512a587f65a0dd36 (patch) | |
tree | 825f2f0c13f85b3547ded100030a39a65096454e /vm_core.h | |
parent | b50e1e68b6050033587e9f6deaf7a104926a01ae (diff) |
Embed rb_gc_function_map_t in rb_vm_t
Avoids a pointer indirection and memory allocation.
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -111,7 +111,7 @@ typedef struct gc_function_map { void *(*objspace_alloc)(void); } rb_gc_function_map_t; -#define rb_gc_functions (GET_VM()->gc_functions_map) +#define rb_gc_functions (&GET_VM()->gc_functions_map) #endif /* @@ -761,7 +761,7 @@ typedef struct rb_vm_struct { struct rb_objspace *objspace; #if USE_SHARED_GC - rb_gc_function_map_t *gc_functions_map; + rb_gc_function_map_t gc_functions_map; #endif rb_at_exit_list *at_exit; |