diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-12-10 10:58:25 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-12-10 13:05:43 +0900 |
commit | da3bca513f437b05b3953c3712ff48621fc5e008 (patch) | |
tree | 0bf9db6a75215f431132668d365040f4e6deb54a /ractor_core.h | |
parent | 554c0949777cd495e5a1296bd6719fcf508a70d0 (diff) |
cache free pages per ractor
Per ractor method cache (GH-#3842) only cached 1 page and this patch
caches several pages to keep at least 512 free slots if available.
If you increase the number of cached free slots, all cached slots
will be collected when the GC is invoked.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3875
Diffstat (limited to 'ractor_core.h')
-rw-r--r-- | ractor_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ractor_core.h b/ractor_core.h index c97dfcc85f..b7a24231b8 100644 --- a/ractor_core.h +++ b/ractor_core.h @@ -137,6 +137,7 @@ struct rb_ractor_struct { struct { struct RVALUE *freelist; struct heap_page *using_page; + struct heap_page *free_pages; } newobj_cache; // gc.c rb_objspace_reachable_objects_from |