Ruby  3.1.0dev(2021-09-10revisionb76ad15ed0da636161de0243c547ee1e6fc95681)
Data Structures | Macros | Typedefs | Functions
objspace.c File Reference

(b76ad15ed0da636161de0243c547ee1e6fc95681)

#include "gc.h"
#include "internal.h"
#include "internal/class.h"
#include "internal/compilers.h"
#include "internal/hash.h"
#include "internal/imemo.h"
#include "internal/sanitizers.h"
#include "node.h"
#include "ruby/io.h"
#include "ruby/re.h"
#include "ruby/st.h"
#include "symbol.h"
#include "ruby/ruby.h"
Include dependency graph for objspace.c:

Go to the source code of this file.

Data Structures

struct  total_data
 
struct  obj_itr
 
struct  dynamic_symbol_counts
 
struct  rof_data
 
struct  rofr_data
 

Macros

#define CASE_TYPE(t)   case t: type = ID2SYM(rb_intern(#t)); break;
 
#define COUNT_NODE(n)   case n: node = ID2SYM(rb_intern(#n)); goto set
 

Typedefs

typedef void(* each_obj_with_flags) (VALUE, void *)
 

Functions

size_t rb_sym_immortal_count (void)
 
void Init_object_tracing (VALUE rb_mObjSpace)
 
void Init_objspace_dump (VALUE rb_mObjSpace)
 
void Init_objspace (void)
 

Macro Definition Documentation

◆ CASE_TYPE

#define CASE_TYPE (   t)    case t: type = ID2SYM(rb_intern(#t)); break;

◆ COUNT_NODE

#define COUNT_NODE (   n)    case n: node = ID2SYM(rb_intern(#n)); goto set

Typedef Documentation

◆ each_obj_with_flags

typedef void(* each_obj_with_flags) (VALUE, void *)

Definition at line 78 of file objspace.c.

Function Documentation

◆ Init_object_tracing()

void Init_object_tracing ( VALUE  rb_mObjSpace)

Definition at line 560 of file object_tracing.c.

References rb_define_module(), and rb_define_module_function.

◆ Init_objspace()

void Init_objspace ( void  )

◆ Init_objspace_dump()

void Init_objspace_dump ( VALUE  rb_mObjSpace)

Definition at line 645 of file objspace_dump.c.

References rb_define_module(), and rb_define_module_function.

◆ rb_sym_immortal_count()

size_t rb_sym_immortal_count ( void  )

Definition at line 997 of file symbol.c.