summaryrefslogtreecommitdiff
path: root/spec
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 /spec
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 'spec')
-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..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