Skip to content

Commit

Permalink
Merge pull request #4441 from jruby/remove-truffle
Browse files Browse the repository at this point in the history
Remove TruffleRuby
  • Loading branch information
chrisseaton committed Jan 14, 2017
2 parents 247afc4 + 8b6eec1 commit 3e4fd9e
Show file tree
Hide file tree
Showing 3,078 changed files with 9 additions and 451,736 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 0 additions & 8 deletions .gitignore
Expand Up @@ -83,16 +83,13 @@ test/pom.xml
test/prawn
test/rails
test/testapp/testapp
test/truffle/*.methods
test/truffle/integration/gem-testing
tool/nailgun/Makefile
tool/nailgun/config.log
tool/nailgun/config.status
tool/nailgun/ng
reference.txt
rubyspec_temp
.polyglot.pom.rb
test/truffle/cexts/**/Makefile

# binaries
!bin/gem
Expand Down Expand Up @@ -134,10 +131,5 @@ build.eclipse
/RUBY.dist
/RUBY-TEST.dist

# Truffle findbugs
truffle-findbugs-report.html
findbugs-noUpdateChecks-3.0.0.tar.gz
findbugs-3.0.0

# Vagrant
.vagrant
3 changes: 0 additions & 3 deletions .travis.yml
Expand Up @@ -75,9 +75,6 @@ matrix:
jdk: oraclejdk8
- env: COMMAND=test/check_versions.sh
jdk: oraclejdk8
# JRuby+Truffle needs Java 8
- env: JT='test fast'
jdk: oraclejdk8
allow_failures:
- env: PHASE='-Pj2ee'
jdk: oraclejdk7
Expand Down
2 changes: 0 additions & 2 deletions BUILDING.md
Expand Up @@ -26,7 +26,6 @@ command to execute is:
This will run the default "install" goal (```mvn install```) and will do all of the following:

* Compile JRuby
* Compile JRuby-Truffle and place it in `lib/jruby-truffle.jar`
* Build `lib/jruby.jar`, needed for running at command line
* It will install the default gems specifications `lib/ruby/gems/shared/specifications/default/` and the ruby files of those gems in `lib/ruby/stdlib/`.

Expand Down Expand Up @@ -98,7 +97,6 @@ jar files by

```
mvn -pl core
mvn -pl truffle
```

### Day to Day Testing
Expand Down
30 changes: 0 additions & 30 deletions COPYING
Expand Up @@ -12,36 +12,6 @@ bytelist (http://github.com/jruby/bytelist),
yydebug (http://svn.codehaus.org/jruby/trunk/jay/yydebug)
are released under the same copyright/license.

The Truffle component is copyright (c) 2013-2017 Oracle and/or its
affiliates and is released under the same licenses.

The Truffle component also distributes:

SnakeYAML (Copyright the SnakeYAML authors, Apache 2.0 licence)

truffle-api and truffle-debug (Copyright Oracle and/or its affiliates, GPL
v2, with classpath exception)

Parts of the core library implementation in truffle/src/main/ruby/core
are copyright (c) 2011, Evan Phoenix, and released under the 3-clause BSD
license.

Parts of the core library implementation in truffle/src/main/ruby/core
are copyright (c) 2007-2015, Evan Phoenix and contributors, and released under
the 3-clause BSD license.

Some parts of the Truffle Java code is derived from Rubinius C++ code which is
copyright (c) 2007-2015, Evan Phoenix and contributors, and released under the
3-clause BSD license.

Some parts of the RubySL implementations of the stdlib in
lib/ruby/truffle/rubysl are copyright (c) 2013 Brian Shirai and are licensed
under the 3-clause BSD license.

pr-zlib is copyright Park Heesob and Daniel Berger. "This library is covered
under the same license as zlib itself. For the text of the zlib license,
please see http://zlib.net/zlib_license.html."

Some additional libraries distributed with JRuby are not covered by
JRuby's licence. Most of these libraries and their licenses are listed
below. Also see LICENSE.RUBY for most files found in lib/ruby/stdlib.
Expand Down
110 changes: 0 additions & 110 deletions bench/truffle/metrics/mandelbrot.rb

This file was deleted.

6 changes: 0 additions & 6 deletions bin/jruby-truffle

This file was deleted.

6 changes: 0 additions & 6 deletions bin/jruby-truffle-tool

This file was deleted.

18 changes: 1 addition & 17 deletions bin/jruby.bash
Expand Up @@ -157,9 +157,6 @@ else
if [ "$j" == "$JRUBY_HOME"/lib/jruby.jar ]; then
continue
fi
if [ "$j" == "$JRUBY_HOME"/lib/jruby-truffle.jar ]; then
continue
fi
if [ "$j" == "$JRUBY_HOME"/lib/jruby-complete.jar ]; then
continue
fi
Expand Down Expand Up @@ -188,7 +185,6 @@ declare -a ruby_args
mode=""

JAVA_CLASS_JRUBY_MAIN=org.jruby.Main
JAVA_CLASS_JRUBY_TRUFFLE_MAIN=org.jruby.truffle.Main
java_class=$JAVA_CLASS_JRUBY_MAIN
JAVA_CLASS_NGSERVER=org.jruby.main.NailServerMain

Expand Down Expand Up @@ -245,12 +241,6 @@ do
# Pass -X... and -X? search options through
-X*\.\.\.|-X*\?)
ruby_args=("${ruby_args[@]}" "$1") ;;
-Xclassic)
unset USING_TRUFFLE
;;
-X+T)
USING_TRUFFLE="true"
;;
# Match -Xa.b.c=d to translate to -Da.b.c=d as a java option
-X*)
val=${1:2}
Expand Down Expand Up @@ -320,12 +310,6 @@ do
shift
done

if [[ "$USING_TRUFFLE" != "" ]]; then
JRUBY_CP="$JRUBY_HOME/lib/jruby-truffle.jar"
java_class=$JAVA_CLASS_JRUBY_TRUFFLE_MAIN
ruby_args=("-X+T" "${ruby_args[@]}")
fi

# Force file.encoding to UTF-8 when on Mac, since Apple JDK defaults to MacRoman (JRUBY-3576)
if [[ $darwin && -z "$JAVA_ENCODING" ]]; then
java_args=("${java_args[@]}" "-Dfile.encoding=UTF-8")
Expand Down Expand Up @@ -368,7 +352,7 @@ if [ "$nailgun_client" != "" ]; then
exit 1
fi
else
if [[ "$NO_BOOTCLASSPATH" != "" || ("$VERIFY_JRUBY" != "" && -z "$USING_TRUFFLE") ]]; then
if [[ "$NO_BOOTCLASSPATH" != "" || "$VERIFY_JRUBY" != "" ]]; then
if [ "$PROFILE_ARGS" != "" ]; then
echo "Running with instrumented profiler"
fi
Expand Down
3 changes: 0 additions & 3 deletions bin/jruby.sh
Expand Up @@ -118,9 +118,6 @@ else
if [ "$j" == "$JRUBY_HOME"/lib/jruby.jar ]; then
continue
fi
if [ "$j" == "$JRUBY_HOME"/lib/jruby-truffle.jar ]; then
continue
fi
if [ "$j" == "$JRUBY_HOME"/lib/jruby-complete.jar ]; then
continue
fi
Expand Down
89 changes: 0 additions & 89 deletions ci.hocon

This file was deleted.

6 changes: 1 addition & 5 deletions core/src/main/java/org/jruby/util/cli/ArgumentProcessor.java
Expand Up @@ -399,10 +399,6 @@ private void processArgument() {
config.setCompileMode(RubyInstanceConfig.CompileMode.OFF);
} else if (extendedOption.equals("+C") || extendedOption.equals("+CIR")) {
config.setCompileMode(RubyInstanceConfig.CompileMode.FORCE);
} else if (extendedOption.equals("classic")) {
throw new MainExitException(0, "jruby: the -Xclassic option should have been handled in the launcher");
} else if (extendedOption.equals("+T")) {
throw new MainExitException(0, "jruby: you need to use the Truffle main to use Truffle - this should have been handled in the launcher");
} else if (extendedOption.endsWith("...")) {
Options.listPrefix(extendedOption.substring(0, extendedOption.length() - "...".length()));
config.setShouldRunInterpreter(false);
Expand Down Expand Up @@ -775,7 +771,7 @@ private String grabOptionalValue() {

private static void checkProperties() {
for (String propertyName : System.getProperties().stringPropertyNames()) {
if (propertyName.startsWith("jruby.") && !propertyName.startsWith("jruby.truffle.")) {
if (propertyName.startsWith("jruby.")) {
if (!isPropertySupported(propertyName)) {
System.err.println("jruby: warning: unknown property " + propertyName);
}
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/java/org/jruby/util/cli/OutputStrings.java
Expand Up @@ -94,8 +94,6 @@ public static String getExtendedHelp() { return
" -X+C force compilation of all scripts before they are run (except eval)\n" +
" -X+CIR force compilation and use IR runtime\n" +
" -X+JIR JIT compilation and use IR runtime\n" +
" -X+T use Truffle\n" +
" -Xclassic don't use Truffle, reversing the -X+T option\n" +
" -Xsubstring? list options that contain substring in their name\n" +
" -Xprefix... list options that are prefixed wtih prefix\n" ;
}
Expand Down

0 comments on commit 3e4fd9e

Please sign in to comment.