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: 9df54bde9703
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e68887ace202
Choose a head ref

Commits on Jan 20, 2016

  1. Bump for release

    enebo committed Jan 20, 2016
    Copy the full SHA
    bd68d85 View commit details
  2. update for next dev cycle

    enebo committed Jan 20, 2016
    Copy the full SHA
    592384a View commit details

Commits on Jan 27, 2016

  1. Add maven-wrapper mvnw

    donv committed Jan 27, 2016
    Copy the full SHA
    c56a53d View commit details

Commits on Feb 4, 2016

  1. Copy the full SHA
    451987d View commit details
  2. Copy the full SHA
    3b03295 View commit details

Commits on Feb 7, 2016

  1. Copy the full SHA
    ff9e696 View commit details
  2. Copy the full SHA
    11add73 View commit details
  3. Copy the full SHA
    f1a24dd View commit details
  4. Copy the full SHA
    e622c70 View commit details
  5. Copy the full SHA
    7349d1f View commit details
  6. Copy the full SHA
    de93162 View commit details
  7. [Truffle] Use Function1 from JRuby, instead of our own Function, unti…

    …l we can switch to Java 8.
    chrisseaton committed Feb 7, 2016
    Copy the full SHA
    c8964da View commit details
  8. Copy the full SHA
    eeabafe View commit details
  9. Copy the full SHA
    2c9a6a3 View commit details
  10. 1
    Copy the full SHA
    a29b589 View commit details

Commits on Feb 8, 2016

  1. Copy the full SHA
    a69b815 View commit details
  2. Copy the full SHA
    6151aa0 View commit details
  3. 2
    Copy the full SHA
    c6d53a5 View commit details
  4. Copy the full SHA
    29b8402 View commit details
  5. Copy the full SHA
    191b693 View commit details
  6. Copy the full SHA
    b75956c View commit details
  7. [Truffle] Typo.

    chrisseaton committed Feb 8, 2016
    Copy the full SHA
    b2c56e7 View commit details
  8. Copy the full SHA
    3364d6e View commit details
  9. Copy the full SHA
    4fdfef9 View commit details
  10. Copy the full SHA
    053e754 View commit details
  11. Copy the full SHA
    775b79d View commit details
  12. Copy the full SHA
    741a7ea View commit details
  13. Copy the full SHA
    12d8d28 View commit details
  14. Copy the full SHA
    4150da5 View commit details

Commits on Feb 9, 2016

  1. Copy the full SHA
    aed3f8c View commit details
  2. Copy the full SHA
    16a5783 View commit details
  3. Copy the full SHA
    3be711f View commit details
  4. Copy the full SHA
    3960446 View commit details
  5. Copy the full SHA
    918dfe1 View commit details
  6. Copy the full SHA
    02fd011 View commit details
  7. [Truffle] Removed an unused core method.

    This method is defined by RegexpNodes.QuoteNode.
    nirvdrum committed Feb 9, 2016
    Copy the full SHA
    b268d3c View commit details
  8. Copy the full SHA
    0144f54 View commit details
  9. Copy the full SHA
    f5c96e4 View commit details
  10. Copy the full SHA
    6505039 View commit details
  11. Copy the full SHA
    0ebac26 View commit details
  12. Copy the full SHA
    a225970 View commit details
  13. Copy the full SHA
    3a9d48f View commit details
  14. Copy the full SHA
    8a846d3 View commit details
  15. Copy the full SHA
    bb6cf1c View commit details
  16. Copy the full SHA
    a0db1d2 View commit details
  17. Copy the full SHA
    0fbef23 View commit details
  18. Copy the full SHA
    a46ad9a View commit details
  19. Copy the full SHA
    3a193b8 View commit details
  20. Copy the full SHA
    8d967de View commit details
  21. Copy the full SHA
    9de574b View commit details
Showing 661 changed files with 2,467 additions and 2,335 deletions.
2 changes: 1 addition & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.1/apache-maven-3.3.1-bin.zip
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/Main.java
Original file line number Diff line number Diff line change
@@ -258,10 +258,10 @@ public Status run() {
private Status internalRun() {
doShowVersion();
doShowCopyright();
doPrintProperties();

if (!config.getShouldRunInterpreter() ) {
if (!config.getShouldRunInterpreter()) {
doPrintUsage(false);
doPrintProperties();
return new Status();
}

11 changes: 7 additions & 4 deletions core/src/main/java/org/jruby/Ruby.java
Original file line number Diff line number Diff line change
@@ -841,8 +841,11 @@ public IRubyObject runInterpreter(ThreadContext context, Node rootNode, IRubyObj
assert self == getTopSelf();
final JRubyTruffleInterface truffleContext = getTruffleContext();
Main.printTruffleTimeMetric("before-run");
truffleContext.execute((RootNode) rootNode);
Main.printTruffleTimeMetric("after-run");
try {
truffleContext.execute((RootNode) rootNode);
} finally {
Main.printTruffleTimeMetric("after-run");
}
return getNil();
} else {
return interpreter.execute(this, rootNode, self);
@@ -890,7 +893,7 @@ public JRubyTruffleInterface getTruffleContext() {
}

private JRubyTruffleInterface loadTruffle() {
Main.printTruffleTimeMetric("before-load-truffle-context");
Main.printTruffleTimeMetric("before-load-context");

final Class<?> clazz;

@@ -909,7 +912,7 @@ private JRubyTruffleInterface loadTruffle() {
throw new RuntimeException("Error while calling the constructor of Truffle's RubyContext", e);
}

Main.printTruffleTimeMetric("after-load-truffle-context");
Main.printTruffleTimeMetric("after-load-context");

return truffleContext;
}
3 changes: 2 additions & 1 deletion core/src/main/java/org/jruby/RubyKernel.java
Original file line number Diff line number Diff line change
@@ -1510,8 +1510,9 @@ public static IRubyObject system(ThreadContext context, IRubyObject recv, IRubyO
@JRubyMethod(name = "system", required = 1, rest = true, module = true, visibility = PRIVATE)
public static IRubyObject system19(ThreadContext context, IRubyObject recv, IRubyObject[] args) {
Ruby runtime = context.runtime;
boolean needChdir = !runtime.getCurrentDirectory().equals(runtime.getPosix().getcwd());

if (runtime.getPosix().isNative() && !Platform.IS_WINDOWS) {
if (!needChdir && runtime.getPosix().isNative() && !Platform.IS_WINDOWS) {
// MRI: rb_f_system
long pid;
int[] status = new int[1];
Original file line number Diff line number Diff line change
@@ -275,6 +275,7 @@ public Instr decodeInstr() {
case RESCUE_EQQ: return RescueEQQInstr.decode(this);
case RESTORE_ERROR_INFO: return RestoreErrorInfoInstr.decode(this);
case RETURN: return ReturnInstr.decode(this);
case RETURN_OR_RETHROW_SAVED_EXC: return ReturnOrRethrowSavedExcInstr.decode(this);
case RUNTIME_HELPER: return RuntimeHelperCall.decode(this);
case SEARCH_CONST: return SearchConstInstr.decode(this);
case SET_CAPTURED_VAR: return SetCapturedVarInstr.decode(this);
@@ -455,6 +456,7 @@ public Operand decode(OperandType type) {
case STRING_LITERAL: return StringLiteral.decode(this);
case SVALUE: return SValue.decode(this);
case SYMBOL: return Symbol.decode(this);
case SYMBOL_PROC: return SymbolProc.decode(this);
case TEMPORARY_VARIABLE: return TemporaryLocalVariable.decode(this);
case UNBOXED_BOOLEAN: return new UnboxedBoolean(decodeBoolean());
case UNBOXED_FIXNUM: return new UnboxedFixnum(decodeLong());
Original file line number Diff line number Diff line change
@@ -209,7 +209,7 @@ public void encode(StaticScope.Type value) {

@Override
public void encode(Operation value) {
encode((byte) value.ordinal());
encode(value.ordinal());
}

@Override
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/util/cli/Options.java
Original file line number Diff line number Diff line change
@@ -274,7 +274,7 @@ public class Options {
public static final Option<Boolean> TRUFFLE_CALL_GRAPH = bool(TRUFFLE, "truffle.callgraph", false, "Maintain a call graph.");
public static final Option<String> TRUFFLE_CALL_GRAPH_WRITE = string(TRUFFLE, "truffle.callgraph.write", "File to write the call garph to on exit.");

public static final Option<Boolean> TRUFFLE_GRAAL_WARNING_UNLESS = bool(TRUFFLE, "truffle.graal.warn_unless", false, "Warn unless the JVM has the Graal compiler.");
public static final Option<Boolean> TRUFFLE_GRAAL_WARNING_UNLESS = bool(TRUFFLE, "truffle.graal.warn_unless", true, "Warn unless the JVM has the Graal compiler.");

public static String dump() {
return "# JRuby configuration options with current values\n" +
28 changes: 14 additions & 14 deletions core/src/main/java/org/jruby/util/io/ChannelStream.java
Original file line number Diff line number Diff line change
@@ -152,7 +152,7 @@ public void checkPermissionsSubsetOf(ModeFlags subsetModes) {
public ModeFlags getModes() {
return modes;
}

public void setModes(ModeFlags modes) {
this.modes = modes;
}
@@ -168,7 +168,7 @@ public void setSync(boolean sync) {
public void setBinmode() {
// No-op here, no binmode handling needed.
}

public boolean isBinmode() {
return false;
}
@@ -193,15 +193,15 @@ public void waitUntilReady() throws IOException, InterruptedException {
}
}

public boolean readDataBuffered() {
return reading && (hasUngotChars() || buffer.hasRemaining());
public final boolean readDataBuffered() {
return hasBufferedInputBytes();
}

private boolean hasUngotChars() {
return ungotChars.length() > 0;
}

public boolean writeDataBuffered() {
public final boolean writeDataBuffered() {
return !reading && buffer.position() > 0;
}

@@ -308,7 +308,7 @@ public synchronized int getline(ByteList dst, byte terminator) throws IOExceptio

int totalRead = 0;
boolean found = false;

if (hasUngotChars()) {
for(int i = 0; i < ungotChars.length(); i++){
byte ungotc = (byte) ungotChars.get(i);
@@ -318,7 +318,7 @@ public synchronized int getline(ByteList dst, byte terminator) throws IOExceptio
}
clearUngotChars();
}

while (!found) {
final byte[] bytes = buffer.array();
final int begin = buffer.arrayOffset() + buffer.position();
@@ -352,7 +352,7 @@ public synchronized int getline(ByteList dst, byte terminator, long limit) throw

int totalRead = 0;
boolean found = false;

if (hasUngotChars()) {
for(int i = 0; i < ungotChars.length(); i++){
byte ungotc = (byte) ungotChars.get(i);
@@ -363,7 +363,7 @@ public synchronized int getline(ByteList dst, byte terminator, long limit) throw
}
clearUngotChars();
}

while (!found) {
final byte[] bytes = buffer.array();
final int begin = buffer.arrayOffset() + buffer.position();
@@ -393,7 +393,7 @@ public synchronized int getline(ByteList dst, byte terminator, long limit) throw
}

/**
*
*
*/
private void clearUngotChars() {
if(ungotChars.length() > 0) {
@@ -494,7 +494,7 @@ public synchronized ByteList readall() throws IOException, BadDescriptorExceptio
*/
private final int copyBufferedBytes(ByteBuffer dst) {
final int bytesToCopy = dst.remaining();

if (hasUngotChars() && dst.hasRemaining()) {
for(int i = 0; i < ungotChars.length(); i++){
byte ungotc = (byte) ungotChars.get(i);
@@ -533,7 +533,7 @@ private final int copyBufferedBytes(ByteBuffer dst) {
*/
private final int copyBufferedBytes(byte[] dst, int off, int len) {
int bytesCopied = 0;

if (hasUngotChars() && len > 0) {
for(int i = 0; i < ungotChars.length(); i++){
byte ungotc = (byte) ungotChars.get(i);
@@ -561,7 +561,7 @@ private final int copyBufferedBytes(ByteList dst, int len) {
int bytesCopied = 0;

dst.ensure(Math.min(len, bufferedInputBytesRemaining()));

if (hasUngotChars() && hasUngotChars()) {
for(int i = 0; i < ungotChars.length(); i++){
byte ungotc = (byte) ungotChars.get(i);
@@ -1208,7 +1208,7 @@ private void invalidateBuffer() throws IOException, BadDescriptorException {
@Override
public void finalize() throws Throwable {
super.finalize();

if (closedExplicitly) return;

if (DEBUG) {
6 changes: 3 additions & 3 deletions lib/ruby/truffle/jruby+truffle/lib/runner.rb
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ class JRubyTruffleRunner
'-J-agentlib:jdwp=transport=dt_socket,server=y,address=%d,suspend=y'],
truffle_bundle_path: ['--truffle-bundle-path NAME', 'Bundle path', assign_new_value, '.jruby+truffle_bundle'],
interpreter_path: ['--interpreter-path PATH', "Path to #{BRANDING} interpreter executable", assign_new_value,
File.expand_path(File.join(File.dirname(__FILE__), '../../../../bin/jruby'))],
File.expand_path(File.join(File.dirname(__FILE__), '../../../../../bin/jruby'))],
graal_path: ['--graal-path PATH', 'Path to Graal', assign_new_value, '../graalvm-jdk1.8.0/bin/java'],
mock_load_path: ['--mock-load-path PATH',
'Path of mocks & monkey-patches (prepended in $:, relative to --truffle_bundle_path)',
@@ -241,7 +241,7 @@ def load_gem_configuration

if candidates.size == 1
gem_name, _ = candidates.first.split('.')
yaml_path = File.dirname(__FILE__) + "/gem_configurations/#{gem_name}.yaml"
yaml_path = File.dirname(__FILE__) + "/../gem_configurations/#{gem_name}.yaml"
end

apply_yaml_to_configuration(yaml_path)
@@ -440,7 +440,7 @@ def subcommand_clean(rest)
end

def subcommand_readme(rest)
readme_path = File.join File.dirname(__FILE__), 'README.md'
readme_path = File.join File.dirname(__FILE__), '../README.md'
puts File.read(readme_path)
end

3 changes: 2 additions & 1 deletion maven/jruby/src/it/j2ee_wildfly/pom.rb
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@

# default versions will be overwritten by pom.rb from root directory
properties( 'jruby.plugins.version' => '1.0.10',
'wildfly.version' => '9.0.2.Final',
'project.build.sourceEncoding' => 'utf-8' )

pom( 'org.jruby:jruby', '${jruby.version}' )
@@ -15,7 +16,7 @@

jruby_plugin :gem, :includeRubygemsInResources => true, :jrubyVersion => '9.0.0.0' do
execute_goal :initialize
end
end

plugin( 'org.wildfly.plugins:wildfly-maven-plugin:1.0.2.Final' ) do
execute_goals( :start,
16 changes: 8 additions & 8 deletions mvnw
Original file line number Diff line number Diff line change
@@ -57,27 +57,27 @@ case "`uname`" in
#
# Look for the Apple JDKs first to preserve the existing behaviour, and then look
# for the new JDKs provided by Oracle.
#
#
if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK ] ; then
#
# Apple JDKs
#
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
fi

if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Java/JavaVirtualMachines/CurrentJDK ] ; then
#
# Apple JDKs
#
export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home
fi

if [ -z "$JAVA_HOME" ] && [ -L "/Library/Java/JavaVirtualMachines/CurrentJDK" ] ; then
#
# Oracle JDKs
#
export JAVA_HOME=/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home
fi
fi

if [ -z "$JAVA_HOME" ] && [ -x "/usr/libexec/java_home" ]; then
#
@@ -200,11 +200,11 @@ find_maven_basedir() {
local basedir=$(pwd)
local wdir=$(pwd)
while [ "$wdir" != '/' ] ; do
wdir=$(cd "$wdir/.."; pwd)
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
fi
wdir=$(cd "$wdir/.."; pwd)
done
echo "${basedir}"
}
@@ -219,7 +219,7 @@ concat_lines() {
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-$(find_maven_basedir)}
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"

# Provide a "standardized" way to retrieve the CLI args that will
# Provide a "standardized" way to retrieve the CLI args that will
# work with both Windows and non-Windows executions.
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
export MAVEN_CMD_LINE_ARGS
@@ -228,7 +228,7 @@ WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain

exec "$JAVACMD" \
$MAVEN_OPTS \
-classpath "./.mvn/wrapper/maven-wrapper.jar" \
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
"-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
${WRAPPER_LAUNCHER} "$@"
${WRAPPER_LAUNCHER} $MAVEN_CMD_LINE_ARGS

Loading