summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/vm_core.h b/vm_core.h
index bf9ea1464e..5c1e718efe 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -462,6 +462,14 @@ enum ruby_basic_operators {
#define GetVMPtr(obj, ptr) \
GetCoreDataFromValue((obj), rb_vm_t, (ptr))
+struct rb_vm_struct;
+typedef void rb_vm_at_exit_func(struct rb_vm_struct*);
+
+typedef struct rb_at_exit_list {
+ rb_vm_at_exit_func *func;
+ struct rb_at_exit_list *next;
+} rb_at_exit_list;
+
struct rb_objspace;
struct rb_objspace *rb_objspace_alloc(void);
void rb_objspace_free(struct rb_objspace *);
@@ -530,11 +538,7 @@ typedef struct rb_vm_struct {
struct rb_objspace *objspace;
- /*
- * @shyouhei notes that this is not for storing normal Ruby
- * objects so do *NOT* mark this when you GC.
- */
- struct RArray at_exit;
+ rb_at_exit_list *at_exit;
VALUE *defined_strings;
st_table *frozen_strings;