diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-09-03 08:34:31 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-09-03 08:34:31 +0900 |
| commit | 4f7a1a167db8a3373b356540eaee21f9cf93e7f2 (patch) | |
| tree | ecb3153837939d66d675f08cb67babdd2c83c392 /include | |
| parent | 5340126443609265d63159e4c391049cb722f828 (diff) | |
| download | mruby-4f7a1a167db8a3373b356540eaee21f9cf93e7f2.tar.gz mruby-4f7a1a167db8a3373b356540eaee21f9cf93e7f2.zip | |
remove memleaks using linked allocator
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/mruby.h b/include/mruby.h index 8a586eeb0..3063358f1 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -106,8 +106,8 @@ typedef struct mrb_state { struct RClass *false_class; struct RClass *nil_class; struct RClass *symbol_class; - struct RClass *kernel_module; + struct heap_page *heaps; struct heap_page *sweeps; struct heap_page *free_heaps; @@ -124,10 +124,10 @@ typedef struct mrb_state { int gc_interval_ratio; int gc_step_ratio; int gc_disabled; + struct alloca_header *mems; mrb_sym symidx; struct kh_n2s *name2sym; /* symbol table */ - struct kh_s2n *sym2name; /* reverse symbol table */ #ifdef INCLUDE_REGEXP struct RNode *local_svar;/* regexp */ #endif @@ -362,6 +362,7 @@ void mrb_pool_close(struct mrb_pool*); void* mrb_pool_alloc(struct mrb_pool*, size_t); void* mrb_pool_realloc(struct mrb_pool*, void*, size_t oldlen, size_t newlen); int mrb_pool_can_realloc(struct mrb_pool*, void*, size_t); +void* mrb_alloca(mrb_state *mrb, size_t); #if defined(__cplusplus) } /* extern "C" { */ |
