Skip to content

Commit a38e6af

Browse files
author
Nicolas Laurent
committed
remove ROPE_DEPTH_THRESHOLD option
1 parent 2ad79e0 commit a38e6af

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,6 @@ public class Options {
219219
public final int CEXTS_MARKING_CACHE;
220220
/** --cexts-tonative-stats=false */
221221
public final boolean CEXTS_TONATIVE_STATS;
222-
/** --rope-depth-threshold=128 */
223-
public final int ROPE_DEPTH_THRESHOLD;
224222
/** --global-variable-max-invalidations=1 */
225223
public final int GLOBAL_VARIABLE_MAX_INVALIDATIONS;
226224
/** --clone-default=true */
@@ -359,7 +357,6 @@ public Options(Env env, OptionValues options, LanguageOptions languageOptions) {
359357
PACK_RECOVER_LOOP_MIN = options.get(OptionsCatalog.PACK_RECOVER_LOOP_MIN_KEY);
360358
CEXTS_MARKING_CACHE = options.get(OptionsCatalog.CEXTS_MARKING_CACHE_KEY);
361359
CEXTS_TONATIVE_STATS = options.get(OptionsCatalog.CEXTS_TONATIVE_STATS_KEY);
362-
ROPE_DEPTH_THRESHOLD = options.get(OptionsCatalog.ROPE_DEPTH_THRESHOLD_KEY);
363360
GLOBAL_VARIABLE_MAX_INVALIDATIONS = options.get(OptionsCatalog.GLOBAL_VARIABLE_MAX_INVALIDATIONS_KEY);
364361
CLONE_DEFAULT = options.get(OptionsCatalog.CLONE_DEFAULT_KEY);
365362
INLINE_DEFAULT = options.get(OptionsCatalog.INLINE_DEFAULT_KEY);
@@ -579,8 +576,6 @@ public Object fromDescriptor(OptionDescriptor descriptor) {
579576
return CEXTS_MARKING_CACHE;
580577
case "ruby.cexts-tonative-stats":
581578
return CEXTS_TONATIVE_STATS;
582-
case "ruby.rope-depth-threshold":
583-
return ROPE_DEPTH_THRESHOLD;
584579
case "ruby.global-variable-max-invalidations":
585580
return GLOBAL_VARIABLE_MAX_INVALIDATIONS;
586581
case "ruby.clone-default":

src/options.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ INTERNAL: # Options for debugging the TruffleRuby implementation
160160
PACK_RECOVER_LOOP_MIN: [pack-recover, integer, 32, 'If a pack or unpack expression is longer than this, attempt to recover loops']
161161
CEXTS_MARKING_CACHE: [cexts-marking-cache, integer, 100, 'Number of objects converted to native handles before the marking service is run']
162162
CEXTS_TONATIVE_STATS: [cexts-tonative-stats, boolean, false, Track the number of conversions of VALUEs to native and print the stats at application exit]
163-
ROPE_DEPTH_THRESHOLD: [rope-depth-threshold, integer, 128, Threshold value at which ropes will be rebalanced (indirectly controls flattening as well)]
164163
GLOBAL_VARIABLE_MAX_INVALIDATIONS: [global-variable-max-invalidations, integer, 1, Maximum number of times a global variable can be changed to be considered constant]
165164

166165
# Splitting and cloning, useful for debugging cloning

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ public class OptionsCatalog {
128128
public static final OptionKey<Integer> PACK_RECOVER_LOOP_MIN_KEY = new OptionKey<>(32);
129129
public static final OptionKey<Integer> CEXTS_MARKING_CACHE_KEY = new OptionKey<>(100);
130130
public static final OptionKey<Boolean> CEXTS_TONATIVE_STATS_KEY = new OptionKey<>(false);
131-
public static final OptionKey<Integer> ROPE_DEPTH_THRESHOLD_KEY = new OptionKey<>(128);
132131
public static final OptionKey<Integer> GLOBAL_VARIABLE_MAX_INVALIDATIONS_KEY = new OptionKey<>(1);
133132
public static final OptionKey<Boolean> CLONE_DEFAULT_KEY = new OptionKey<>(true);
134133
public static final OptionKey<Boolean> INLINE_DEFAULT_KEY = new OptionKey<>(true);
@@ -905,13 +904,6 @@ public class OptionsCatalog {
905904
.stability(OptionStability.EXPERIMENTAL)
906905
.build();
907906

908-
public static final OptionDescriptor ROPE_DEPTH_THRESHOLD = OptionDescriptor
909-
.newBuilder(ROPE_DEPTH_THRESHOLD_KEY, "ruby.rope-depth-threshold")
910-
.help("Threshold value at which ropes will be rebalanced (indirectly controls flattening as well)")
911-
.category(OptionCategory.INTERNAL)
912-
.stability(OptionStability.EXPERIMENTAL)
913-
.build();
914-
915907
public static final OptionDescriptor GLOBAL_VARIABLE_MAX_INVALIDATIONS = OptionDescriptor
916908
.newBuilder(GLOBAL_VARIABLE_MAX_INVALIDATIONS_KEY, "ruby.global-variable-max-invalidations")
917909
.help("Maximum number of times a global variable can be changed to be considered constant")
@@ -1263,8 +1255,6 @@ public static OptionDescriptor fromName(String name) {
12631255
return CEXTS_MARKING_CACHE;
12641256
case "ruby.cexts-tonative-stats":
12651257
return CEXTS_TONATIVE_STATS;
1266-
case "ruby.rope-depth-threshold":
1267-
return ROPE_DEPTH_THRESHOLD;
12681258
case "ruby.global-variable-max-invalidations":
12691259
return GLOBAL_VARIABLE_MAX_INVALIDATIONS;
12701260
case "ruby.clone-default":
@@ -1418,7 +1408,6 @@ public static OptionDescriptor[] allDescriptors() {
14181408
PACK_RECOVER_LOOP_MIN,
14191409
CEXTS_MARKING_CACHE,
14201410
CEXTS_TONATIVE_STATS,
1421-
ROPE_DEPTH_THRESHOLD,
14221411
GLOBAL_VARIABLE_MAX_INVALIDATIONS,
14231412
CLONE_DEFAULT,
14241413
INLINE_DEFAULT,

0 commit comments

Comments
 (0)