Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::GC::Core Struct Reference

#include <gc-core.h>

Static Public Member Functions

static void init ()
 
static void * malloc (std::size_t size)
 
static void * malloc_atomic (std::size_t size)
 
static void * malloc_uncollectable (std::size_t size)
 
static void * malloc_atomic_uncollectable (std::size_t size)
 
static void * base (void *ptr)
 
static void register_finalizer_ignore_self (void *base, CleanupFunc func, void *data, CleanupFunc *old_func, void **old_data)
 
static int general_register_disappearing_link (void **p_ptr, void *base)
 
static int unregister_disappearing_link (void **p_ptr)
 
static std::size_t get_heap_size ()
 
static std::size_t get_free_bytes ()
 
static void gcollect ()
 
static void enable ()
 
static void disable ()
 
static void free (void *ptr)
 

Static Private Attributes

static Ops _ops
 

Detailed Description

Definition at line 62 of file gc-core.h.

Member Function Documentation

◆ base()

static void * Inkscape::GC::Core::base ( void *  ptr)
inlinestatic

◆ disable()

static void Inkscape::GC::Core::disable ( )
inlinestatic

Definition at line 109 of file gc-core.h.

References _ops, and Inkscape::GC::Ops::disable.

◆ enable()

static void Inkscape::GC::Core::enable ( )
inlinestatic

Definition at line 106 of file gc-core.h.

References _ops, and Inkscape::GC::Ops::enable.

◆ free()

static void Inkscape::GC::Core::free ( void *  ptr)
inlinestatic

Definition at line 112 of file gc-core.h.

References _ops, and Inkscape::GC::Ops::free.

Referenced by operator delete().

◆ gcollect()

static void Inkscape::GC::Core::gcollect ( )
inlinestatic

◆ general_register_disappearing_link()

static int Inkscape::GC::Core::general_register_disappearing_link ( void **  p_ptr,
void *  base 
)
inlinestatic

Definition at line 89 of file gc-core.h.

References _ops, base(), and Inkscape::GC::Ops::general_register_disappearing_link.

◆ get_free_bytes()

static std::size_t Inkscape::GC::Core::get_free_bytes ( )
inlinestatic

Definition at line 100 of file gc-core.h.

References _ops, and Inkscape::GC::Ops::get_free_bytes.

Referenced by Inkscape::Debug::GCHeap::stats().

◆ get_heap_size()

static std::size_t Inkscape::GC::Core::get_heap_size ( )
inlinestatic

Definition at line 97 of file gc-core.h.

References _ops, and Inkscape::GC::Ops::get_heap_size.

Referenced by Inkscape::Debug::GCHeap::stats().

◆ init()

void Inkscape::GC::Core::init ( )
static

Definition at line 270 of file gc.cpp.

References _ops, and Inkscape::GC::Ops::do_init.

Referenced by Inkscape::GC::init().

◆ malloc()

static void * Inkscape::GC::Core::malloc ( std::size_t  size)
inlinestatic

Definition at line 65 of file gc-core.h.

References _ops, Inkscape::GC::Ops::malloc, and Inkscape::size.

◆ malloc_atomic()

static void * Inkscape::GC::Core::malloc_atomic ( std::size_t  size)
inlinestatic

Definition at line 68 of file gc-core.h.

References _ops, Inkscape::GC::Ops::malloc_atomic, and Inkscape::size.

◆ malloc_atomic_uncollectable()

static void * Inkscape::GC::Core::malloc_atomic_uncollectable ( std::size_t  size)
inlinestatic

Definition at line 74 of file gc-core.h.

References _ops, Inkscape::GC::Ops::malloc_atomic_uncollectable, and Inkscape::size.

◆ malloc_uncollectable()

static void * Inkscape::GC::Core::malloc_uncollectable ( std::size_t  size)
inlinestatic

Definition at line 71 of file gc-core.h.

References _ops, Inkscape::GC::Ops::malloc_uncollectable, and Inkscape::size.

◆ register_finalizer_ignore_self()

static void Inkscape::GC::Core::register_finalizer_ignore_self ( void *  base,
CleanupFunc  func,
void *  data,
CleanupFunc old_func,
void **  old_data 
)
inlinestatic

Definition at line 80 of file gc-core.h.

References _ops, base(), data, and Inkscape::GC::Ops::register_finalizer_ignore_self.

◆ unregister_disappearing_link()

static int Inkscape::GC::Core::unregister_disappearing_link ( void **  p_ptr)
inlinestatic

Definition at line 94 of file gc-core.h.

References _ops, and Inkscape::GC::Ops::unregister_disappearing_link.

Member Data Documentation

◆ _ops

Ops Inkscape::GC::Core::_ops
staticprivate
Initial value:
= {
nullptr,
&stub_malloc,
&stub_malloc,
&stub_malloc,
&stub_malloc,
&stub_base,
&stub_register_finalizer_ignore_self,
&stub_general_register_disappearing_link,
&stub_unregister_disappearing_link,
&stub_get_heap_size,
&stub_get_free_bytes,
&stub_gcollect,
&stub_enable,
&stub_disable,
&stub_free
}

Definition at line 116 of file gc-core.h.

Referenced by base(), disable(), enable(), free(), gcollect(), general_register_disappearing_link(), get_free_bytes(), get_heap_size(), init(), malloc(), malloc_atomic(), malloc_atomic_uncollectable(), malloc_uncollectable(), register_finalizer_ignore_self(), and unregister_disappearing_link().


The documentation for this struct was generated from the following files: