Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf77c1972683
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9e6ceab0498a
Choose a head ref
  • 3 commits
  • 5 files changed
  • 1 contributor

Commits on Dec 24, 2015

  1. 2
    Copy the full SHA
    9bb6cad View commit details
  2. Copy the full SHA
    db2ab2f View commit details
  3. Copy the full SHA
    9e6ceab View commit details
Showing with 17 additions and 10 deletions.
  1. +6 −0 bin/jruby.bash
  2. +1 −1 test/truffle/attachments-optimise.rb
  3. +1 −1 test/truffle/can-we-fold-yet.rb
  4. +1 −1 test/truffle/pe/pe.rb
  5. +8 −7 tool/jt.rb
6 changes: 6 additions & 0 deletions bin/jruby.bash
Original file line number Diff line number Diff line change
@@ -238,6 +238,12 @@ do
opt="${opt:1}=false" ;;
esac
java_args=("${java_args[@]}" "-Djvmci.option.$opt")
elif [ "${val:0:15}" = "-Djvmci.option." ]; then # Graal options
opt=${val:15}
java_args=("${java_args[@]}" "-Djvmci.option.$opt")
elif [ "${val:0:15}" = "-Dgraal.option." ]; then # Graal options
opt=${val:15}
java_args=("${java_args[@]}" "-Djvmci.option.$opt")
else
if [ "${val:0:3}" = "-ea" ]; then
VERIFY_JRUBY="yes"
2 changes: 1 addition & 1 deletion test/truffle/attachments-optimise.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -J-Djvmci.option.TruffleCompilationExceptionsAreFatal=true
# -J-G:+TruffleCompilationExceptionsAreFatal

def foo
foo = 14
2 changes: 1 addition & 1 deletion test/truffle/can-we-fold-yet.rb
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
# GNU General Public License version 2
# GNU Lesser General Public License version 2.1

# Use -J-Djvmci.option.TruffleIterativePartialEscape=true
# Use -J-G:+TruffleIterativePartialEscape

unless Truffle.graal?
puts 'You need Graal to run this'
2 changes: 1 addition & 1 deletion test/truffle/pe/pe.rb
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
#
# Run with:
#
# jt run --graal -J-Djvmci.option.TraceTruffleCompilation=true -J-Djvmci.option.TruffleCompilationExceptionsAreFatal=true -J-Djvmci.option.TruffleIterativePartialEscape=true test.rb
# jt run --graal -J-G:+TraceTruffleCompilation -J-G:+TruffleCompilationExceptionsAreFatal -J-G:+TruffleIterativePartialEscape test.rb

TIMEOUT = 10

15 changes: 8 additions & 7 deletions tool/jt.rb
Original file line number Diff line number Diff line change
@@ -257,6 +257,7 @@ def irb(*args)
end

def rebuild
FileUtils.cp('bin/jruby.bash', 'bin/jruby')
clean
build
end
@@ -294,9 +295,9 @@ def run(*args)
warn "warning: --igv might not work on master - if it does not, use truffle-head instead which builds against latest graal" if Utilities.git_branch == 'master'
Utilities.ensure_igv_running
if args.delete('--full')
jruby_args += %w[-J-Djvmci.option.Dump=Truffle]
jruby_args += %w[-J-G:Dump=Truffle]
else
jruby_args += %w[-J-Djvmci.option.Dump=TrufflePartialEscape]
jruby_args += %w[-J-G:Dump=TrufflePartialEscape]
end
end

@@ -365,8 +366,8 @@ def test(*args)

def test_pe(*args)
file = args.pop if args.last and File.exist?(args.last)
args.push('-J-Djvmci.option.TruffleIterativePartialEscape=true')
args.push('-J-Djvmci.option.TruffleCompilationExceptionsAreThrown=true')
args.push('-J-G:+TruffleIterativePartialEscape')
args.push('-J-G:+TruffleCompilationExceptionsAreThrown')
run('--graal', *args, 'test/truffle/pe/pe.rb', *file)
end
private :test_pe
@@ -444,11 +445,11 @@ def bench(command, *args)
bench_args = ["#{bench_dir}/bin/bench9000"]
case command
when 'debug'
vm_args = ['-Djvmci.option.TraceTruffleCompilation=true', '-Djvmci.option.DumpOnError=true']
vm_args = ['-G:+TraceTruffleCompilation', '-G:+DumpOnError']
if args.delete '--ruby-backtrace'
vm_args.push '-Djvmci.option.TruffleCompilationExceptionsAreThrown=true'
vm_args.push '-G:+TruffleCompilationExceptionsAreThrown'
else
vm_args.push '-Djvmci.option.TruffleCompilationExceptionsAreFatal=true'
vm_args.push '-G:+TruffleCompilationExceptionsAreFatal'
end
remaining_args = []
args.each do |arg|