summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2022-10-19 16:56:37 +0200
committerJean Boussier <jean.boussier@gmail.com>2023-04-04 19:49:08 +0200
commitba6ccd871442f55080bffd53e33678c0726787d2 (patch)
treed8b9435500b80ecdd29e798db76cb4620b5763b7 /internal
parenta84c99468f26a9f79fec57926d561ed906505eac (diff)
downloadruby-ba6ccd871442f55080bffd53e33678c0726787d2.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 2b67ca40dc..e0cc3bfa8a 100644
--- a/internal/gc.h
+++ b/internal/gc.h
@@ -214,6 +214,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 *);