Ruby: ext/objspace/objspace.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

objspace.h
Go to the documentation of this file.
1#ifndef OBJSPACE_H
2#define OBJSPACE_H 1
3
4/* object_tracing.c */
5 struct allocation_info {
6 /* all of information don't need marking. */
7 int living;
8 VALUE flags;
9 VALUE klass;
10
11 /* allocation info */
12 const char *path;
13 unsigned long line;
14 const char *class_path;
15 VALUE mid;
16 size_t generation;
17};
18struct allocation_info *objspace_lookup_allocation_info(VALUE obj);
19
20#endif
objspace_lookup_allocation_info
struct allocation_info * objspace_lookup_allocation_info(VALUE obj)
Definition: object_tracing.c:420
allocation_info
Definition: objspace.h:5
allocation_info::class_path
const char * class_path
Definition: objspace.h:14
allocation_info::flags
VALUE flags
Definition: objspace.h:8
allocation_info::klass
VALUE klass
Definition: objspace.h:9
allocation_info::line
unsigned long line
Definition: objspace.h:13
allocation_info::path
const char * path
Definition: objspace.h:12
allocation_info::generation
size_t generation
Definition: objspace.h:16
allocation_info::mid
VALUE mid
Definition: objspace.h:15
allocation_info::living
int living
Definition: objspace.h:7
VALUE
unsigned long VALUE
Definition: value.h:38