summaryrefslogtreecommitdiff
path: root/ext/objspace/objspace.h
blob: 95b84d6c1e0d3aa72c1eaafe88584ed6c3cda46e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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