mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
21 lines
406 B
C
21 lines
406 B
C
|
#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
|