aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2023-04-05 08:40:07 +0200
committerJean Boussier <jean.boussier@gmail.com>2023-07-17 11:20:15 +0200
commitfa30b99c34291cde7b17cc709552bc5681729a12 (patch)
tree84add14f8a2b05fcd00ca0ee3b6b1980b52e9540 /internal
parentd3bcff01583abce2fb095fc67f47e86fa7005755 (diff)
downloadruby-fa30b99c34291cde7b17cc709552bc5681729a12.tar.gz
Implement Process.warmup
[Feature #18885] For now, the optimizations performed are: - Run a major GC - Compact the heap - Promote all surviving objects to oldgen Other optimizations may follow.
Diffstat (limited to 'internal')
-rw-r--r--internal/gc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/gc.h b/internal/gc.h
index e345f20cb6..2934422474 100644
--- a/internal/gc.h
+++ b/internal/gc.h
@@ -204,6 +204,7 @@ extern VALUE *ruby_initial_gc_stress_ptr;
extern int ruby_disable_gc;
RUBY_ATTR_MALLOC void *ruby_mimmalloc(size_t size);
void ruby_mimfree(void *ptr);
+void rb_gc_prepare_heap(void);
void rb_objspace_set_event_hook(const rb_event_flag_t event);
VALUE rb_objspace_gc_enable(struct rb_objspace *);
VALUE rb_objspace_gc_disable(struct rb_objspace *);