Skip to content

Commit a950317

Browse files
committed
[GR-18163] Disable thread pool for Fibers as it causes correctness issues
PullRequest: truffleruby/3381
2 parents acc97f5 + 28781e4 commit a950317

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# 22.3.0
2+
3+
New features:
4+
5+
6+
Bug fixes:
7+
8+
9+
Compatibility:
10+
11+
12+
Performance:
13+
14+
15+
Changes:
16+
17+
118
# 22.2.0
219

320
New features:
@@ -51,6 +68,7 @@ Performance:
5168
Changes:
5269

5370
* `-Werror=implicit-function-declaration` is now used for compiling C extensions to fail more clearly and earlier if a function is missing, like CRuby 3.2 (#2618, @eregon).
71+
* Disable thread pool for Fibers as it causes correctness issues (#2551, @eregon).
5472

5573
# 22.1.0
5674

src/main/java/org/truffleruby/options/Options.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public class Options {
7272
public final boolean PATCHING;
7373
/** --hashing-deterministic=false */
7474
public final boolean HASHING_DETERMINISTIC;
75-
/** --fiber-pool=true */
75+
/** --fiber-pool=false */
7676
public final boolean FIBER_POOL;
7777
/** --log-subprocess=false */
7878
public final boolean LOG_SUBPROCESS;

src/options.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ EXPERT:
102102
LAZY_TRANSLATION_USER: [lazy-translation-user, boolean, LAZY_CALLTARGETS, 'Lazily translation of stdlib, gem and user source files']
103103
PATCHING: [patching, boolean, true, Use patching]
104104
HASHING_DETERMINISTIC: [hashing-deterministic, boolean, false, Produce deterministic hash values]
105-
FIBER_POOL: [fiber-pool, boolean, true, 'Use a thread pool to speed up creating Fibers']
105+
FIBER_POOL: [fiber-pool, boolean, false, 'Use a thread pool to speed up creating Fibers']
106106
LOG_SUBPROCESS: [log-subprocess, boolean, false, 'Log whenever a subprocess is created'] # Also see --log-process-args
107107
WARN_LOCALE: [warn-locale, boolean, true, 'Warn when the system locale is not set properly']
108108

src/shared/java/org/truffleruby/shared/options/OptionsCatalog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class OptionsCatalog {
5353
public static final OptionKey<Boolean> LAZY_TRANSLATION_USER_KEY = new OptionKey<>(LAZY_CALLTARGETS_KEY.getDefaultValue());
5454
public static final OptionKey<Boolean> PATCHING_KEY = new OptionKey<>(true);
5555
public static final OptionKey<Boolean> HASHING_DETERMINISTIC_KEY = new OptionKey<>(false);
56-
public static final OptionKey<Boolean> FIBER_POOL_KEY = new OptionKey<>(true);
56+
public static final OptionKey<Boolean> FIBER_POOL_KEY = new OptionKey<>(false);
5757
public static final OptionKey<Boolean> LOG_SUBPROCESS_KEY = new OptionKey<>(false);
5858
public static final OptionKey<Boolean> WARN_LOCALE_KEY = new OptionKey<>(true);
5959
public static final OptionKey<Boolean> EXCEPTIONS_STORE_JAVA_KEY = new OptionKey<>(false);

0 commit comments

Comments
 (0)