Skip to content

Commit f0045a1

Browse files
committed
Fix option name
1 parent c4d4919 commit f0045a1

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

src/main/java/org/truffleruby/RubyContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ private void dispose() {
524524
RubyLanguage.LOGGER.info("total ropes interned: " + language.ropeCache.totalRopes());
525525
}
526526

527-
if (options.CEXTS_TONATIVE_STATS) {
527+
if (options.CEXTS_TO_NATIVE_STATS) {
528528
RubyLanguage.LOGGER.info(
529529
"Total VALUE object to native conversions: " + getValueWrapperManager().totalHandleAllocations());
530530
}

src/main/java/org/truffleruby/cext/ValueWrapperManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ protected long allocateHandleOnKnownThread(ValueWrapper wrapper,
318318
@Cached GetHandleBlockHolderNode getBlockHolderNode) {
319319
HandleThreadData threadData = getBlockHolderNode.execute(wrapper);
320320
HandleBlock block = threadData.holder.handleBlock;
321-
if (context.getOptions().CEXTS_TONATIVE_STATS) {
321+
if (context.getOptions().CEXTS_TO_NATIVE_STATS) {
322322
context.getValueWrapperManager().recordHandleAllocation();
323323
}
324324

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ public class Options {
153153
public final boolean LOG_PENDING_INTERRUPTS;
154154
/** --rope-print-intern-stats=false */
155155
public final boolean ROPE_PRINT_INTERN_STATS;
156-
/** --cexts-tonative-stats=false */
157-
public final boolean CEXTS_TONATIVE_STATS;
156+
/** --cexts-to-native-stats=false */
157+
public final boolean CEXTS_TO_NATIVE_STATS;
158158
/** --array-small=3 */
159159
public final int ARRAY_SMALL;
160160
/** --cexts-marking-cache=100 */
@@ -258,7 +258,7 @@ public Options(Env env, OptionValues options, LanguageOptions languageOptions) {
258258
BUILDING_CORE_CEXTS = options.get(OptionsCatalog.BUILDING_CORE_CEXTS_KEY);
259259
LOG_PENDING_INTERRUPTS = options.get(OptionsCatalog.LOG_PENDING_INTERRUPTS_KEY);
260260
ROPE_PRINT_INTERN_STATS = options.get(OptionsCatalog.ROPE_PRINT_INTERN_STATS_KEY);
261-
CEXTS_TONATIVE_STATS = options.get(OptionsCatalog.CEXTS_TONATIVE_STATS_KEY);
261+
CEXTS_TO_NATIVE_STATS = options.get(OptionsCatalog.CEXTS_TO_NATIVE_STATS_KEY);
262262
ARRAY_SMALL = options.get(OptionsCatalog.ARRAY_SMALL_KEY);
263263
CEXTS_MARKING_CACHE = options.get(OptionsCatalog.CEXTS_MARKING_CACHE_KEY);
264264
GLOBAL_VARIABLE_MAX_INVALIDATIONS = options.get(OptionsCatalog.GLOBAL_VARIABLE_MAX_INVALIDATIONS_KEY);
@@ -411,8 +411,8 @@ public Object fromDescriptor(OptionDescriptor descriptor) {
411411
return LOG_PENDING_INTERRUPTS;
412412
case "ruby.rope-print-intern-stats":
413413
return ROPE_PRINT_INTERN_STATS;
414-
case "ruby.cexts-tonative-stats":
415-
return CEXTS_TONATIVE_STATS;
414+
case "ruby.cexts-to-native-stats":
415+
return CEXTS_TO_NATIVE_STATS;
416416
case "ruby.array-small":
417417
return ARRAY_SMALL;
418418
case "ruby.cexts-marking-cache":

src/options.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ INTERNAL: # Options for debugging the TruffleRuby implementation
166166
LOG_DYNAMIC_CONSTANT_LOOKUP: [constant-dynamic-lookup-log, boolean, false, Log source code positions where dynamic constant lookup is performed]
167167
LOG_PENDING_INTERRUPTS: [log-pending-interrupts, boolean, false, Log when executing pending interrupts]
168168
ROPE_PRINT_INTERN_STATS: [rope-print-intern-stats, boolean, false, Print interned rope stats at application exit]
169-
CEXTS_TONATIVE_STATS: [cexts-tonative-stats, boolean, false, Track the number of conversions of VALUEs to native and print the stats at application exit]
169+
CEXTS_TO_NATIVE_STATS: [cexts-to-native-stats, boolean, false, Track the number of conversions of VALUEs to native and print the stats at application exit]
170170

171171
# Options to debug the implementation
172172
LAZY_BUILTINS: [lazy-builtins, boolean, LAZY_CALLTARGETS, Load builtin classes (core methods & primitives) lazily on first use]

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public class OptionsCatalog {
9797
public static final OptionKey<Boolean> LOG_DYNAMIC_CONSTANT_LOOKUP_KEY = new OptionKey<>(false);
9898
public static final OptionKey<Boolean> LOG_PENDING_INTERRUPTS_KEY = new OptionKey<>(false);
9999
public static final OptionKey<Boolean> ROPE_PRINT_INTERN_STATS_KEY = new OptionKey<>(false);
100-
public static final OptionKey<Boolean> CEXTS_TONATIVE_STATS_KEY = new OptionKey<>(false);
100+
public static final OptionKey<Boolean> CEXTS_TO_NATIVE_STATS_KEY = new OptionKey<>(false);
101101
public static final OptionKey<Boolean> LAZY_BUILTINS_KEY = new OptionKey<>(LAZY_CALLTARGETS_KEY.getDefaultValue());
102102
public static final OptionKey<Boolean> LAZY_TRANSLATION_CORE_KEY = new OptionKey<>(LAZY_CALLTARGETS_KEY.getDefaultValue());
103103
public static final OptionKey<Boolean> BASICOPS_INLINE_KEY = new OptionKey<>(true);
@@ -694,8 +694,8 @@ public class OptionsCatalog {
694694
.stability(OptionStability.EXPERIMENTAL)
695695
.build();
696696

697-
public static final OptionDescriptor CEXTS_TONATIVE_STATS = OptionDescriptor
698-
.newBuilder(CEXTS_TONATIVE_STATS_KEY, "ruby.cexts-tonative-stats")
697+
public static final OptionDescriptor CEXTS_TO_NATIVE_STATS = OptionDescriptor
698+
.newBuilder(CEXTS_TO_NATIVE_STATS_KEY, "ruby.cexts-to-native-stats")
699699
.help("Track the number of conversions of VALUEs to native and print the stats at application exit")
700700
.category(OptionCategory.INTERNAL)
701701
.stability(OptionStability.EXPERIMENTAL)
@@ -1249,8 +1249,8 @@ public static OptionDescriptor fromName(String name) {
12491249
return LOG_PENDING_INTERRUPTS;
12501250
case "ruby.rope-print-intern-stats":
12511251
return ROPE_PRINT_INTERN_STATS;
1252-
case "ruby.cexts-tonative-stats":
1253-
return CEXTS_TONATIVE_STATS;
1252+
case "ruby.cexts-to-native-stats":
1253+
return CEXTS_TO_NATIVE_STATS;
12541254
case "ruby.lazy-builtins":
12551255
return LAZY_BUILTINS;
12561256
case "ruby.lazy-translation-core":
@@ -1447,7 +1447,7 @@ public static OptionDescriptor[] allDescriptors() {
14471447
LOG_DYNAMIC_CONSTANT_LOOKUP,
14481448
LOG_PENDING_INTERRUPTS,
14491449
ROPE_PRINT_INTERN_STATS,
1450-
CEXTS_TONATIVE_STATS,
1450+
CEXTS_TO_NATIVE_STATS,
14511451
LAZY_BUILTINS,
14521452
LAZY_TRANSLATION_CORE,
14531453
BASICOPS_INLINE,

0 commit comments

Comments
 (0)