Skip to content

Commit c82a6c3

Browse files
committed
[GR-19220] Switch to --engine options (#1863).
PullRequest: truffleruby/1217
2 parents 83abd2e + 037f6a8 commit c82a6c3

File tree

14 files changed

+21
-21
lines changed

14 files changed

+21
-21
lines changed

doc/contributor/workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ $ jt --use jvm-ce ruby ...
161161
```
162162

163163
We have flags in `jt` to set some options, such as `--trace` for
164-
`--vm.Dgraal.TraceTruffleCompilation=true`.
164+
`--engine.TraceCompilation`.
165165

166166
## Testing with Graal
167167

doc/samples/can-we-fold-yet.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# GNU General Public License version 2, or
77
# GNU Lesser General Public License version 2.1.
88

9-
# Use --vm.Dgraal.TruffleIterativePartialEscape=true
9+
# Use --engine.IterativePartialEscape
1010

1111
require 'readline'
1212

doc/user/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ loop do
113113
end
114114
```
115115

116-
We'll use the `--vm.Dgraal.TraceTruffleCompilation=true` to ask the Truffle
116+
We'll use the `--engine.TraceCompilation` to ask the Truffle
117117
Framework to tell us when it compiles something using the GraalVM Compiler.
118118

119119
```
120-
$ ruby --vm.Dgraal.TraceTruffleCompilation=true test.rb
120+
$ ruby --engine.TraceCompilation test.rb
121121
[truffle] opt done block in <main> test.rb:1 <opt> <split-3a9ffa1b> |ASTSize 8/ 8 |Time 103( 99+4 )ms |DirectCallNodes I 0/D 0 |GraalNodes 24/ 3 |CodeSize 69 |CodeAddress 0x11245cf50 |Source ../test.rb:1
122122
```
123123

doc/user/reporting-performance-problems.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ native mode so that startup and warmup time is shorter.
3939
## How to check for basic performance problems
4040

4141
If you are examining the performance of TruffleRuby, we would recommend that you
42-
always run with the `--vm.Dgraal.TraceTruffleCompilation=true` flag. If you see
42+
always run with the `--engine.TraceCompilation` flag. If you see
4343
compilation failures or repeated compilation of the same methods, this is an
4444
indicator that something is not working as intended and you may need to examine
4545
why, or ask us to help you do so. If you don't run with this flag Truffle will

mx.truffleruby/mx_truffleruby_benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def name(self):
576576
def runBenchmark(self, benchmark, bmSuiteArgs):
577577
arguments = ['ruby']
578578
if not bmSuiteArgs:
579-
arguments.extend(['--vm.Dgraal.TruffleCompilationExceptionsAreFatal=true'])
579+
arguments.extend(['--engine.CompilationExceptionsAreFatal'])
580580
arguments.extend(['bench/servers/' + benchmark + '.rb'])
581581

582582
server = BackgroundJT(arguments + bmSuiteArgs)

spec/truffle/launcher_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ def should_print_full_java_command(options, env: {})
301301
guard -> { TruffleRuby.jit? } do
302302
it "applies Truffle options" do
303303
options = [
304-
"--vm.Dgraal.TraceTruffleCompilation=true",
305-
"--vm.Dgraal.TruffleBackgroundCompilation=false",
304+
"--engine.TraceCompilation",
305+
"--engine.BackgroundCompilation=false",
306306
].join(" ")
307307
out = ruby_exe("2000.times {}", options: options, args: "2>&1")
308308
out.should include("[truffle] opt done")

test/truffle/compiler/can-we-fold-yet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source test/truffle/common.sh.inc
44

5-
jt ruby --vm.Dgraal.TruffleIterativePartialEscape=true doc/samples/can-we-fold-yet.rb < test/truffle/compiler/can-we-fold-yet/input.txt > actual.txt
5+
jt ruby --engine.IterativePartialEscape doc/samples/can-we-fold-yet.rb < test/truffle/compiler/can-we-fold-yet/input.txt > actual.txt
66

77
if ! cmp test/truffle/compiler/can-we-fold-yet/expected.txt actual.txt
88
then

test/truffle/compiler/osr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
source test/truffle/common.sh.inc
44

5-
jt ruby --vm.Dgraal.TruffleCompilationExceptionsAreFatal=true test/truffle/compiler/osr/osr.rb
5+
jt ruby --engine.CompilationExceptionsAreFatal test/truffle/compiler/osr/osr.rb

test/truffle/compiler/pe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
source test/truffle/common.sh.inc
44

5-
jt ruby --vm.Dgraal.TruffleCompilationExceptionsAreThrown=true --vm.Dgraal.TruffleIterativePartialEscape=true test/truffle/compiler/pe/pe.rb "$@"
5+
jt ruby --engine.CompilationExceptionsAreThrown --engine.IterativePartialEscape test/truffle/compiler/pe/pe.rb "$@"

test/truffle/compiler/pe/pe.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#
2525
# Run with:
2626
#
27-
# jt ruby --graal --vm.Dgraal.TraceTruffleCompilation=true --vm.Dgraal.TruffleCompilationExceptionsAreFatal=true --vm.Dgraal.TruffleIterativePartialEscape=true test.rb
27+
# jt ruby --graal --engine.TraceCompilation --engine.CompilationExceptionsAreFatal --engine.IterativePartialEscape test.rb
2828

2929
abort 'not running the GraalVM Compiler' unless TruffleRuby.jit?
3030

0 commit comments

Comments
 (0)