Skip to content

Commit 8f883f5

Browse files
committed
Merge branch 'master' into truffle-head
Conflicts: truffle/src/main/java/org/jruby/truffle/nodes/core/ThreadNodes.java
2 parents 00fbf5a + 081148a commit 8f883f5

File tree

172 files changed

+2500
-443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+2500
-443
lines changed

core/pom.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
jar 'com.github.jnr:jnr-unixsocket:0.7'
4747
jar 'com.github.jnr:jnr-posix:3.0.11'
4848
jar 'com.github.jnr:jnr-constants:0.8.6'
49-
jar 'com.github.jnr:jnr-ffi:2.0.2'
49+
jar 'com.github.jnr:jnr-ffi:2.0.3-SNAPSHOT'
5050
jar 'com.github.jnr:jffi:${jffi.version}'
5151
jar 'com.github.jnr:jffi:${jffi.version}:native'
5252

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
<dependency>
116116
<groupId>com.github.jnr</groupId>
117117
<artifactId>jnr-ffi</artifactId>
118-
<version>2.0.2</version>
118+
<version>2.0.3-SNAPSHOT</version>
119119
</dependency>
120120
<dependency>
121121
<groupId>com.github.jnr</groupId>

core/src/main/java/org/jruby/Ruby.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
import java.io.PrintWriter;
168168
import java.lang.ref.WeakReference;
169169
import java.lang.reflect.Constructor;
170+
import java.lang.reflect.Field;
170171
import java.net.BindException;
171172
import java.net.MalformedURLException;
172173
import java.net.URL;
@@ -1287,6 +1288,20 @@ && getInstanceConfig().getCompileMode() != CompileMode.TRUFFLE) {
12871288
loadService.require("jruby");
12881289
}
12891290

1291+
// attempt to enable unlimited-strength crypto on OpenJDK
1292+
try {
1293+
Class jceSecurity = Class.forName("javax.crypto.JceSecurity");
1294+
Field isRestricted = jceSecurity.getField("isRestricted");
1295+
isRestricted.setAccessible(true);
1296+
isRestricted.set(null, false);
1297+
isRestricted.setAccessible(false);
1298+
} catch (Exception e) {
1299+
if (isDebug()) {
1300+
System.err.println("unable to enable unlimited-strength crypto");
1301+
e.printStackTrace();
1302+
}
1303+
}
1304+
12901305
// out of base boot mode
12911306
bootingCore = false;
12921307

core/src/main/java/org/jruby/util/ShellLauncher.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ private static Process popenShared(Ruby runtime, IRubyObject[] strings) throws I
757757
}
758758

759759
private static Process popenShared(Ruby runtime, IRubyObject[] strings, Map env) throws IOException {
760-
return popenShared(runtime, strings, env, false);
760+
return popenShared(runtime, strings, env, true);
761761
}
762762

763763
private static Process popenShared(Ruby runtime, IRubyObject[] strings, Map env, boolean addShell) throws IOException {
@@ -783,10 +783,9 @@ private static Process popenShared(Ruby runtime, IRubyObject[] strings, Map env,
783783

784784
String[] args = parseCommandLine(runtime.getCurrentContext(), runtime, strings);
785785
LaunchConfig lc = new LaunchConfig(runtime, strings, false);
786-
boolean useShell = lc.shouldRunInShell();
786+
boolean useShell = Platform.IS_WINDOWS ? lc.shouldRunInShell() : false;
787787
if (addShell) for (String arg : args) useShell |= shouldUseShell(arg);
788-
789-
// CON: popen is a case where I think we should just always shell out.
788+
790789
if (strings.length == 1) {
791790
if (useShell) {
792791
// single string command, pass to sh to expand wildcards

lib/ruby/truffle/mri/irb.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../stdlib/irb'

lib/ruby/truffle/mri/irb/cmd/chws.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/cmd/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/cmd/fork.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/cmd/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/cmd/help.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/cmd/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/cmd/load.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/cmd/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/cmd/nop.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/cmd/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/cmd/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/cmd/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/context.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/ext/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/ext/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/ext/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/ext/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/ext/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/ext/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/ext/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/ext/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/ext/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/frame.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/help.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/init.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/inspector.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/lc/error.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../stdlib/irb/lc/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../../stdlib/irb/lc/ja' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../../../stdlib/irb/lc/ja' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/locale.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/notifier.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/ruby-lex.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/slex.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/version.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/workspace.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)

lib/ruby/truffle/mri/irb/xmp.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../../stdlib/irb/' + File.basename(__FILE__)

lib/ruby/truffle/mri/scanf.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative '../../stdlib/scanf'

lib/ruby/truffle/rubysl/README.md

Lines changed: 1 addition & 0 deletions
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Copyright (c) 2013, Brian Shirai
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
2. Redistributions in binary form must reproduce the above copyright notice,
10+
this list of conditions and the following disclaimer in the documentation
11+
and/or other materials provided with the distribution.
12+
3. Neither the name of the library nor the names of its contributors may be
13+
used to endorse or promote products derived from this software without
14+
specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT,
20+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
23+
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
25+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)