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: 2748a1c02a6a
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8ff150d215b0
Choose a head ref
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on Oct 7, 2016

  1. [Truffle] Fix typo.

    eregon committed Oct 7, 2016
    Copy the full SHA
    64cb66a View commit details
  2. Copy the full SHA
    8ff150d View commit details
1 change: 0 additions & 1 deletion spec/truffle/tags/core/process/getpriority_tags.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -144,6 +144,10 @@ public int getppid() {

@Override
public int getpriority(int which, int who) {
// getpriority can return -1 so errno has to be cleared.
// it should be done as close as possible to the syscall
// as JVM classloading could change errno.
posix.errno(0);
return posix.getpriority(which, who);
}

2 changes: 1 addition & 1 deletion truffle/src/main/ruby/core/exception.rb
Original file line number Diff line number Diff line change
@@ -304,7 +304,7 @@ def self.errno_error(message, errno, location)
end

# We use .new here because when errno is set, we attempt to
# lookup and return a subclass of SystemCallError, specificly,
# lookup and return a subclass of SystemCallError, specifically,
# one of the Errno subclasses.
def self.new(*args)
# This method is used 2 completely different ways. One is when it's called
2 changes: 0 additions & 2 deletions truffle/src/main/ruby/core/process.rb
Original file line number Diff line number Diff line change
@@ -354,8 +354,6 @@ def self.getpriority(kind, id)
kind = Rubinius::Type.coerce_to kind, Integer, :to_int
id = Rubinius::Type.coerce_to id, Integer, :to_int

Truffle::POSIX.errno = 0
Errno.handle # Make sure the reset above worked
ret = Truffle::POSIX.getpriority(kind, id)
Errno.handle
ret