diff options
author | Jean Boussier <byroot@ruby-lang.org> | 2023-04-05 08:40:07 +0200 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2023-07-17 11:20:15 +0200 |
commit | fa30b99c34291cde7b17cc709552bc5681729a12 (patch) | |
tree | 84add14f8a2b05fcd00ca0ee3b6b1980b52e9540 /spec/ruby/core/process | |
parent | d3bcff01583abce2fb095fc67f47e86fa7005755 (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/7662
Diffstat (limited to 'spec/ruby/core/process')
-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..b562d52d22 --- /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 specific. + # Other implementations are free to just make it a noop + it "is implemented" do + Process.warmup.should == true + end + end +end |