From 68aa1d81cfb21b397f0f74cf9edbb9d71f13f0ac Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 20 Sep 2016 07:52:25 +0000 Subject: gc.c: rb_gc_adjust_memory_usage * gc.c (rb_gc_adjust_memory_usage): notify memory usage to the GC engine by extension libraries, to trigger GC. [Feature #12690] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/ruby') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 48608f32c3..efa8f4058c 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -502,6 +502,7 @@ VALUE rb_undefine_finalizer(VALUE); size_t rb_gc_count(void); size_t rb_gc_stat(VALUE); VALUE rb_gc_latest_gc_info(VALUE); +void rb_gc_adjust_memory_usage(ssize_t); /* hash.c */ void st_foreach_safe(struct st_table *, int (*)(ANYARGS), st_data_t); VALUE rb_check_hash_type(VALUE); -- cgit v1.2.3