Skip to content

Commit

Permalink
Load subspawn builtins by default on non-Windows
Browse files Browse the repository at this point in the history
The logic in subspawn is much more complete and passes more specs,
so this is a first step toward using it by default on all
platforms where it works.
  • Loading branch information
headius committed May 1, 2024
1 parent c730730 commit 167a23a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions core/src/main/java/org/jruby/Ruby.java
Original file line number Diff line number Diff line change
Expand Up @@ -544,12 +544,8 @@ private Ruby(RubyInstanceConfig config) {

// Done booting JRuby runtime
runtimeIsBooted = true;
if ("true".equals(System.getenv("USE_SUBSPAWN"))) {
if (Platform.IS_WINDOWS) {
LOG.warn("env USE_SUBSPAWN=true is unsupported on Windows at this time");
} else {
getLoadService().require("subspawn/replace-builtin");
}
if (!Platform.IS_WINDOWS) {
getLoadService().require("subspawn/replace-builtin");
}
}

Expand Down

0 comments on commit 167a23a

Please sign in to comment.