diff options
Diffstat (limited to 'jni/ruby/ext/objspace/objspace.h')
-rw-r--r-- | jni/ruby/ext/objspace/objspace.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/jni/ruby/ext/objspace/objspace.h b/jni/ruby/ext/objspace/objspace.h new file mode 100644 index 0000000..95b84d6 --- /dev/null +++ b/jni/ruby/ext/objspace/objspace.h @@ -0,0 +1,20 @@ +#ifndef OBJSPACE_H +#define OBJSPACE_H 1 + +/* object_tracing.c */ +struct allocation_info { + /* all of information don't need marking. */ + int living; + VALUE flags; + VALUE klass; + + /* allocation info */ + const char *path; + unsigned long line; + const char *class_path; + VALUE mid; + size_t generation; +}; +struct allocation_info *objspace_lookup_allocation_info(VALUE obj); + +#endif |