-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5205 from jruby/ji-lazy-pp2
review (cleanup) boot -> standard JRuby extension loading
- 9.4.12.0
- 9.4.11.0
- 9.4.10.0
- 9.4.9.0
- 9.4.8.0
- 9.4.7.0
- 9.4.6.0
- 9.4.5.0
- 9.4.4.0
- 9.4.3.0
- 9.4.2.0
- 9.4.1.0
- 9.4.0.0
- 9.3.15.0
- 9.3.14.0
- 9.3.13.0
- 9.3.12.0
- 9.3.11.0
- 9.3.10.0
- 9.3.9.0
- 9.3.8.0
- 9.3.7.0
- 9.3.6.0
- 9.3.5.0
- 9.3.4.0
- 9.3.3.0
- 9.3.2.0
- 9.3.1.0
- 9.3.0.0
- 9.2.21.0
- 9.2.20.1
- 9.2.20.0
- 9.2.19.0
- 9.2.18.0
- 9.2.17.0
- 9.2.16.0
- 9.2.15.0
- 9.2.14.0
- 9.2.13.0
- 9.2.12.0
- 9.2.11.1
- 9.2.11.0
- 9.2.10.0
- 9.2.9.0
- 9.2.8.0
- 9.2.7.0
- 9.2.6.0
- 9.2.5.0
- 9.2.4.1
- 9.2.4.0
- 9.2.3.0
- 9.2.2.0
- 9.2.1.0
Showing
25 changed files
with
312 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
# This file boots the Ruby-based parts of JRuby. | ||
|
||
# These are loads so they don't pollute LOADED_FEATURES | ||
load 'jruby/kernel/jruby/type.rb' | ||
load 'jruby/kernel/signal.rb' | ||
require 'jruby' # NOTE: consider not doing this, require 'java' is enough! | ||
require 'jruby/util' # stuff boot depends on (compared to a full require 'jruby') | ||
|
||
module JRuby | ||
autoload :ProcessUtil, 'jruby/kernel/jruby/process_util.rb' | ||
autoload :Type, 'jruby/kernel/jruby/type.rb' | ||
end | ||
|
||
require 'jruby' | ||
begin | ||
# Try to access ProcessBuilder; if it fails, don't define our special process logic | ||
java.lang.ProcessBuilder # GH-1148: ProcessBuilder is not available on GAE | ||
load 'jruby/kernel/jruby/process_manager.rb' | ||
rescue Exception | ||
warn "ProcessBuilder unavailable; using default backtick" if $VERBOSE | ||
# leave old backtick logic in place | ||
end unless JRuby.runtime.posix.native? # native POSIX uses new logic for back-quote | ||
end unless JRuby::Util.native_posix? # native POSIX uses new logic for back-quote | ||
|
||
# These are loads so they don't pollute LOADED_FEATURES | ||
load 'jruby/kernel/signal.rb' | ||
load 'jruby/kernel/kernel.rb' | ||
load 'jruby/kernel/proc.rb' | ||
load 'jruby/kernel/process.rb' | ||
load 'jruby/kernel/jruby/process_util.rb' | ||
load 'jruby/kernel/jruby/type.rb' | ||
load 'jruby/kernel/enumerator.rb' | ||
load 'jruby/kernel/enumerable.rb' | ||
load 'jruby/kernel/io.rb' | ||
load 'jruby/kernel/time.rb' | ||
load 'jruby/kernel/gc.rb' | ||
load 'jruby/kernel/range.rb' | ||
load 'jruby/kernel/load_error.rb' | ||
load 'jruby/kernel/file.rb' | ||
load 'jruby/kernel/basicobject.rb' | ||
load 'jruby/kernel/hash.rb' | ||
load 'jruby/kernel/string.rb' | ||
load 'jruby/kernel/pp.rb' | ||
|
||
$" << 'thread.rb' | ||
$" << 'thread.rb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
if defined?(Gem) | ||
if Object.const_defined?(:Gem) | ||
begin | ||
require 'rubygems' | ||
rescue LoadError | ||
# For JRUBY-5333, gracefully fail to load, since stdlib may not be available | ||
require 'rubygems.rb' | ||
rescue LoadError # java -jar lib/jruby.jar -e '...' | ||
warn 'RubyGems not found; disabling gems' if $VERBOSE | ||
else | ||
begin | ||
gem 'did_you_mean' | ||
require 'did_you_mean' | ||
Gem.clear_paths | ||
rescue Gem::LoadError, LoadError | ||
end if defined?(DidYouMean) | ||
rescue LoadError # Gem::LoadError < LoadError | ||
end if Object.const_defined?(:DidYouMean) | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
module Kernel | ||
def pp(*objs) | ||
require 'pp' | ||
pp(*objs) | ||
end | ||
|
||
# suppress redefinition warning | ||
alias pp pp # :nodoc: | ||
end | ||
# loaded from 'jruby/kernel/prelude.rb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,4 @@ def unseeded_hash; end if false | |
|
||
end | ||
|
||
JRuby.send(:load_string_ext) | ||
JRuby::Util.load_ext(:string) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters