summaryrefslogtreecommitdiff
path: root/spec/ruby/core/process
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 /spec/ruby/core/process
parentd3bcff01583abce2fb095fc67f47e86fa7005755 (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.rb11
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