diff options
author | Jean Boussier <byroot@ruby-lang.org> | 2022-10-19 16:56:37 +0200 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2023-04-04 19:49:08 +0200 |
commit | ba6ccd871442f55080bffd53e33678c0726787d2 (patch) | |
tree | d8b9435500b80ecdd29e798db76cb4620b5763b7 /spec | |
parent | a84c99468f26a9f79fec57926d561ed906505eac (diff) |
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7346
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/process/warmup_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/ruby/core/process/warmup_spec.rb b/spec/ruby/core/process/warmup_spec.rb new file mode 100644 index 0000000000..fbdfd34848 --- /dev/null +++ b/spec/ruby/core/process/warmup_spec.rb @@ -0,0 +1,11 @@ +require_relative '../../spec_helper' + +describe "Process.warmup" do + ruby_version_is "3.3" do + # The behavior is entirely implementation dependant. + # Other implementations are free to just make it a noop + it "is implemented" do + Process.warmup.should == true + end + end +end |