Skip to content

Commit

Permalink
Default to BucketsHashStore for the big hash storage strategy
Browse files Browse the repository at this point in the history
* CompactHashStore seems to be more prone to races:
  #3447
* Until a thread-safe Hash implementation is merged.
  • Loading branch information
eregon committed Feb 13, 2024
1 parent 04c2281 commit 7918a6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/truffleruby/options/LanguageOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public final class LanguageOptions {
public final boolean LAZY_TRANSLATION_USER;
/** --backtraces-omit-unused=true */
public final boolean BACKTRACES_OMIT_UNUSED;
/** --buckets-big-hash=false */
/** --buckets-big-hash=true */
public final boolean BIG_HASH_STRATEGY_IS_BUCKETS;
/** --building-core-cexts=false */
public final boolean BUILDING_CORE_CEXTS;
Expand Down
2 changes: 1 addition & 1 deletion src/options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ EXPERT:
BACKTRACES_OMIT_UNUSED: [backtraces-omit-unused, boolean, true, Omit backtraces that should be unused as they have pure rescue expressions]

# Big Hash Strategy
BIG_HASH_STRATEGY_IS_BUCKETS: [buckets-big-hash, boolean, false, 'Whether to use chaining-style buckets hash store for hash tables exceeding the small hash limit']
BIG_HASH_STRATEGY_IS_BUCKETS: [buckets-big-hash, boolean, true, 'Whether to use chaining-style buckets hash store for hash tables exceeding the small hash limit']

# Print backtraces at key events
BACKTRACE_ON_INTERRUPT: [backtraces-on-interrupt, boolean, false, Show the backtraces of all Threads on Ctrl+C]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public final class OptionsCatalog {
public static final OptionKey<Boolean> EXCEPTIONS_WARN_OUT_OF_MEMORY_KEY = new OptionKey<>(true);
public static final OptionKey<Boolean> BACKTRACES_INTERLEAVE_JAVA_KEY = new OptionKey<>(false);
public static final OptionKey<Boolean> BACKTRACES_OMIT_UNUSED_KEY = new OptionKey<>(true);
public static final OptionKey<Boolean> BIG_HASH_STRATEGY_IS_BUCKETS_KEY = new OptionKey<>(false);
public static final OptionKey<Boolean> BIG_HASH_STRATEGY_IS_BUCKETS_KEY = new OptionKey<>(true);
public static final OptionKey<Boolean> BACKTRACE_ON_INTERRUPT_KEY = new OptionKey<>(false);
public static final OptionKey<Boolean> BACKTRACE_ON_SIGALRM_KEY = new OptionKey<>(!EMBEDDED_KEY.getDefaultValue());
public static final OptionKey<Boolean> BACKTRACE_ON_RAISE_KEY = new OptionKey<>(false);
Expand Down

0 comments on commit 7918a6d

Please sign in to comment.