-
Notifications
You must be signed in to change notification settings - Fork 736
/
Copy pathJ9Options.cpp
2680 lines (2391 loc) · 130 KB
/
J9Options.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*******************************************************************************
* Copyright (c) 2000, 2018 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://www.eclipse.org/legal/epl-2.0/
* or the Apache License, Version 2.0 which accompanies this distribution and
* is available at https://www.apache.org/licenses/LICENSE-2.0.
*
* This Source Code may also be made available under the following
* Secondary Licenses when the conditions for such availability set
* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
* General Public License, version 2 with the GNU Classpath
* Exception [1] and GNU General Public License, version 2 with the
* OpenJDK Assembly Exception [2].
*
* [1] https://www.gnu.org/software/classpath/license.html
* [2] http://openjdk.java.net/legal/assembly-exception.html
*
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
*******************************************************************************/
#include "control/J9Options.hpp"
#include <algorithm>
#include <ctype.h>
#include <stdint.h>
#include "jitprotos.h"
#include "j2sever.h"
#include "j9.h"
#include "j9cfg.h"
#include "j9modron.h"
#include "jvminit.h"
#include "codegen/CodeGenerator.hpp"
#include "compile/Compilation.hpp"
#include "control/Recompilation.hpp"
#include "control/RecompilationInfo.hpp"
#include "env/CompilerEnv.hpp"
#include "env/IO.hpp"
#include "env/VMJ9.h"
#include "env/jittypes.h"
#include "infra/SimpleRegex.hpp"
#include "trj9/control/CompilationRuntime.hpp"
#include "trj9/control/CompilationThread.hpp"
#include "trj9/runtime/IProfiler.hpp"
#if defined(J9VM_OPT_SHARED_CLASSES)
#include "j9jitnls.h"
#endif
#define SET_OPTION_BIT(x) TR::Options::setBit, offsetof(OMR::Options,_options[(x)&TR_OWM]), ((x)&~TR_OWM)
// For use with TPROF only, disable JVMPI hooks even if -Xrun is specified.
// The only hook that is required is J9HOOK_COMPILED_METHOD_LOAD.
//
bool enableCompiledMethodLoadHookOnly = false;
// -----------------------------------------------------------------------------
// Static data initialization
// -----------------------------------------------------------------------------
bool J9::Options::_doNotProcessEnvVars = false; // set through XX options in Java
int32_t J9::Options::_samplingFrequencyInIdleMode = 1000; // ms
int32_t J9::Options::_samplingFrequencyInDeepIdleMode = 100000; // ms
int32_t J9::Options::_resetCountThreshold = 0; // Disable the feature
int32_t J9::Options::_scorchingSampleThreshold = 240;
int32_t J9::Options::_conservativeScorchingSampleThreshold = 80; // used when many CPUs (> _upperBoundNumProc)
int32_t J9::Options::_upperBoundNumProcForScaling = 64; // used for scaling _scorchingSampleThreshold based on numProc
int32_t J9::Options::_lowerBoundNumProcForScaling = 8; // used for scaling _scorchingSampleThreshold based on numProd]c
int32_t J9::Options::_veryHotSampleThreshold = 480;
int32_t J9::Options::_relaxedCompilationLimitsSampleThreshold = 120; // normally should be lower than the scorchingSampleThreshold
int32_t J9::Options::_sampleThresholdVariationAllowance = 30;
int32_t J9::Options::_maxCheckcastProfiledClassTests = 3;
int32_t J9::Options::_maxOnsiteCacheSlotForInstanceOf = 0; // Setting this value to zero will disable onsite cache in instanceof.
int32_t J9::Options::_cpuEntitlementForConservativeScorching = 801; // 801 means more than 800%, i.e. 8 cpus
// A very large number disables the feature
int32_t J9::Options::_sampleHeartbeatInterval = 10;
int32_t J9::Options::_sampleDontSwitchToProfilingThreshold = 3000; // default=1% use large value to disable// To be tuned
int32_t J9::Options::_stackSize = 1024;
int32_t J9::Options::_profilerStackSize = 128;
int32_t J9::Options::_smallMethodBytecodeSizeThreshold = 0;
int32_t J9::Options::_smallMethodBytecodeSizeThresholdForCold = -1; // -1 means not set (or disabled)
int32_t J9::Options::_countForMethodsCompiledDuringStartup = 10;
int32_t J9::Options::_countForLoopyBootstrapMethods = -1; // -1 means feature disabled
int32_t J9::Options::_countForLooplessBootstrapMethods = -1; // -1 means feature disabled
TR::SimpleRegex *J9::Options::_jniAccelerator = NULL;
int32_t J9::Options::_classLoadingPhaseInterval = 500; // ms
int32_t J9::Options::_experimentalClassLoadPhaseInterval = 40;
int32_t J9::Options::_classLoadingPhaseThreshold = 155; // classes per second
int32_t J9::Options::_classLoadingPhaseVariance = 70; // percentage 0..99
int32_t J9::Options::_classLoadingRateAverage = 800; // classes per second
int32_t J9::Options::_secondaryClassLoadingPhaseThreshold = 10000;
int32_t J9::Options::_numClassLoadPhaseQuiesceIntervals = 1;
int32_t J9::Options::_userClassLoadingPhaseThreshold = 5;
bool J9::Options::_userClassLoadingPhase = false;
int32_t J9::Options::_bigAppSampleThresholdAdjust = 3; //amount to shift the hot and scorching threshold
int32_t J9::Options::_availableCPUPercentage = 100;
int32_t J9::Options::_cpuCompTimeExpensiveThreshold = 4000;
uintptrj_t J9::Options::_compThreadAffinityMask = 0;
int32_t J9::Options::_interpreterSamplingThreshold = 300;
int32_t J9::Options::_interpreterSamplingDivisor = TR_DEFAULT_INTERPRETER_SAMPLING_DIVISOR;
int32_t J9::Options::_interpreterSamplingThresholdInStartupMode = TR_DEFAULT_INITIAL_BCOUNT; // 3000
int32_t J9::Options::_interpreterSamplingThresholdInJSR292 = TR_DEFAULT_INITIAL_COUNT - 2; // Run stuff twice before getting too excited about interpreter ticks
int32_t J9::Options::_activeThreadsThreshold = 0; // -1 means 'determine dynamically', 0 means feature disabled
int32_t J9::Options::_samplingThreadExpirationTime = -1;
int32_t J9::Options::_compilationExpirationTime = -1;
int32_t J9::Options::_minSamplingPeriod = 10; // ms
int32_t J9::Options::_compilationBudget = 0; // ms; 0 means disabled
int32_t J9::Options::_catchSamplingSizeThreshold = -1; // measured in nodes; -1 means not initialized
int32_t J9::Options::_compilationThreadPriorityCode = 4; // these codes are converted into
// priorities in startCompilationThread
int32_t J9::Options::_disableIProfilerClassUnloadThreshold = 20000;// The usefulness of IProfiling is questionable at this point
int32_t J9::Options::_iprofilerReactivateThreshold=10;
int32_t J9::Options::_iprofilerIntToTotalSampleRatio=2;
int32_t J9::Options::_iprofilerSamplesBeforeTurningOff = 1000000; // samples
int32_t J9::Options::_iprofilerNumOutstandingBuffers = 10;
int32_t J9::Options::_iprofilerBufferMaxPercentageToDiscard = 0;
int32_t J9::Options::_iProfilerBufferInterarrivalTimeToExitDeepIdle = 5000; // 5 seconds
int32_t J9::Options::_iprofilerBufferSize = 1024;
#ifdef TR_HOST_64BIT
int32_t J9::Options::_iProfilerMemoryConsumptionLimit=32*1024*1024;
#else
int32_t J9::Options::_iProfilerMemoryConsumptionLimit=18*1024*1024;
#endif
int32_t J9::Options::_IprofilerOffSubtractionFactor = 500;
int32_t J9::Options::_IprofilerOffDivisionFactor = 16;
int32_t J9::Options::_maxIprofilingCount = TR_DEFAULT_INITIAL_COUNT; // 3000
int32_t J9::Options::_maxIprofilingCountInStartupMode = TR_QUICKSTART_INITIAL_COUNT; // 1000
int32_t J9::Options::_iprofilerFailRateThreshold = 70; // percent 1-100
int32_t J9::Options::_iprofilerFailHistorySize = 10; // percent 1-100
int32_t J9::Options::_compYieldStatsThreshold = 1000; // usec
int32_t J9::Options::_compYieldStatsHeartbeatPeriod = 0; // ms
int32_t J9::Options::_numberOfUserClassesLoaded = 0;
int32_t J9::Options::_compPriorityQSZThreshold = 200;
int32_t J9::Options::_numQueuedInvReqToDowngradeOptLevel = 20; // If more than 20 inv req are queued we compiled them at cold
int32_t J9::Options::_qszThresholdToDowngradeOptLevel = -1; // not yet set
int32_t J9::Options::_qsziThresholdToDowngradeDuringCLP = 0; // -1 or 0 disables the feature and reverts to old behavior
int32_t J9::Options::_qszThresholdToDowngradeOptLevelDuringStartup = 100000; // a large number disables the feature
int32_t J9::Options::_cpuUtilThresholdForStarvation = 25; // 25%
// If too many GCR are queued we stop counting.
// Use a large value to disable the feature. 400 is a good default
// Don't use a value smaller than GCR_HYSTERESIS==100
int32_t J9::Options::_GCRQueuedThresholdForCounting = 1000000; // 400;
int32_t J9::Options::_minimumSuperclassArraySize = 5;
int32_t J9::Options::_TLHPrefetchSize = 0;
int32_t J9::Options::_TLHPrefetchLineSize = 0;
int32_t J9::Options::_TLHPrefetchLineCount = 0;
int32_t J9::Options::_TLHPrefetchStaggeredLineCount = 0;
int32_t J9::Options::_TLHPrefetchBoundaryLineCount = 0;
int32_t J9::Options::_TLHPrefetchTLHEndLineCount = 0;
int32_t J9::Options::_numFirstTimeCompilationsToExitIdleMode = 25; // Use a large number to disable the feature
int32_t J9::Options::_waitTimeToEnterIdleMode = 5000; // ms
int32_t J9::Options::_waitTimeToEnterDeepIdleMode = 50000; // ms
int32_t J9::Options::_waitTimeToExitStartupMode = DEFAULT_WAIT_TIME_TO_EXIT_STARTUP_MODE; // ms
int32_t J9::Options::_waitTimeToGCR = 10000; // ms
int32_t J9::Options::_waitTimeToStartIProfiler = 1000; // ms
int32_t J9::Options::_compilationDelayTime = 0; // sec; 0 means disabled
int32_t J9::Options::_invocationThresholdToTriggerLowPriComp = 250;
int32_t J9::Options::_aotMethodThreshold = 200;
int32_t J9::Options::_aotMethodCompilesThreshold = 200;
int32_t J9::Options::_aotWarmSCCThreshold = 200;
int32_t J9::Options::_largeTranslationTime = -1; // usec
int32_t J9::Options::_weightOfAOTLoad = 1; // must be between 0 and 256
int32_t J9::Options::_weightOfJSR292 = 12; // must be between 0 and 256
TR_YesNoMaybe J9::Options::_hwProfilerEnabled = TR_maybe;
int32_t J9::Options::_hwprofilerNumOutstandingBuffers = 256; // 1MB / 4KB buffers
// These numbers are cast into floats divided by 10000
uint32_t J9::Options::_hwprofilerWarmOptLevelThreshold = 1; // 0.0001
uint32_t J9::Options::_hwprofilerReducedWarmOptLevelThreshold=0; // 0 ==> upgrade methods with just 1 tick in any given interval
uint32_t J9::Options::_hwprofilerAOTWarmOptLevelThreshold = 10; // 0.001
uint32_t J9::Options::_hwprofilerHotOptLevelThreshold = 100; // 0.01
uint32_t J9::Options::_hwprofilerScorchingOptLevelThreshold = 1250; // 0.125
uint32_t J9::Options::_hwprofilerLastOptLevel = warm; // warm
uint32_t J9::Options::_hwprofilerRecompilationInterval = 10000;
uint32_t J9::Options::_hwprofilerRIBufferThreshold = 50; // process buffer when it is at least 50% full
uint32_t J9::Options::_hwprofilerRIBufferPoolSize = 1 * 1024 * 1024; // 1 MB
int32_t J9::Options::_hwProfilerRIBufferProcessingFrequency= 0; // process buffer every time
int32_t J9::Options::_hwProfilerRecompFrequencyThreshold = 5000; // less than 1 in 5000 will turn RI off
int32_t J9::Options::_hwProfilerRecompDecisionWindow = 5000; // Should be at least as big as _hwProfilerRecompFrequencyThreshold
int32_t J9::Options::_numDowngradesToTurnRION = 250;
int32_t J9::Options::_qszThresholdToTurnRION = 100;
int32_t J9::Options::_qszMaxThresholdToRIDowngrade = 250;
int32_t J9::Options::_qszMinThresholdToRIDowngrade = 50; // should be smaller than _qszMaxThresholdToRIDowngrade
uint32_t J9::Options::_hwprofilerPRISamplingRate = 500000;
int32_t J9::Options::_hwProfilerBufferMaxPercentageToDiscard = 5;
uint32_t J9::Options::_hwProfilerExpirationTime = 0; // ms; 0 means disabled
uint32_t J9::Options::_hwprofilerZRIBufferSize = 4 * 1024; // 4 kb
uint32_t J9::Options::_hwprofilerZRIMode = 0; // cycle based profiling
uint32_t J9::Options::_hwprofilerZRIRGS = 0; // only collect instruction records
uint32_t J9::Options::_hwprofilerZRISF = 10000000;
int32_t J9::Options::_LoopyMethodSubtractionFactor = 500;
int32_t J9::Options::_LoopyMethodDivisionFactor = 16;
int32_t J9::Options::_localCSEFrequencyThreshold = 1000;
int32_t J9::Options::_profileAllTheTime = 0;
int32_t J9::Options::_seriousCompFailureThreshold = 10; // above this threshold we generate a trace point in the Snap file
bool J9::Options::_useCPUsToDetermineMaxNumberOfCompThreadsToActivate = false;
int32_t J9::Options::_numCodeCachesToCreateAtStartup = 0; // 0 means no change from default which is 1
int32_t J9::Options::_dataCacheQuantumSize = 64;
int32_t J9::Options::_dataCacheMinQuanta = 2;
int32_t J9::Options::_updateFreeMemoryMinPeriod = 500; // 500 ms
size_t J9::Options::_scratchSpaceLimitKBWhenLowVirtualMemory = 64*1024; // 64MB; currently, only used on 32 bit Windows
int32_t J9::Options::_scratchSpaceFactorWhenJSR292Workload = JSR292_SCRATCH_SPACE_FACTOR;
int32_t J9::Options::_lowVirtualMemoryMBThreshold = 300; // Used on 32 bit Windows, Linux, 31 bit z/OS, Linux
int32_t J9::Options::_safeReservePhysicalMemoryValue = 50 << 20; // 50 MB
int32_t J9::Options::_numDLTBufferMatchesToEagerlyIssueCompReq = 8; //a value of 1 or less disables the DLT tracking mechanism
int32_t J9::Options::_dltPostponeThreshold = 2;
int32_t J9::Options::_expensiveCompWeight = TR::CompilationInfo::JSR292_WEIGHT;
int32_t J9::Options::_jProfilingEnablementSampleThreshold = 10000;
//************************************************************************
//
// Options handling - the following code implements the VM-specific
// jit command-line options.
//
// Options processing is table-driven, the table for VM-specific options
// here (see Options.hpp for a description of the table entries).
//
//************************************************************************
// Helper routines to parse and format -Xlp:codecache Options
enum TR_XlpCodeCacheOptions
{
XLPCC_PARSING_FIRST_OPTION,
XLPCC_PARSING_OPTION,
XLPCC_PARSING_COMMA,
XLPCC_PARSING_ERROR
};
// Returns large page flag type string for error handling.
char *
getLargePageTypeString(UDATA pageFlags)
{
if (0 != (J9PORT_VMEM_PAGE_FLAG_PAGEABLE & pageFlags))
return "pageable";
else if (0 != (J9PORT_VMEM_PAGE_FLAG_FIXED & pageFlags))
return "nonpageable";
else
return "not used";
}
// Formats size to be in terms of X bytes to XX(K/M/G) for printing
void
qualifiedSize(UDATA *byteSize, char **qualifier)
{
UDATA size;
size = *byteSize;
*qualifier = "";
if(!(size % 1024)) {
size /= 1024;
*qualifier = "K";
if(size && !(size % 1024)) {
size /= 1024;
*qualifier = "M";
if(size && !(size % 1024)) {
size /= 1024;
*qualifier = "G";
}
}
}
*byteSize = size;
}
bool
J9::Options::useCompressedPointers()
{
#if defined(J9VM_GC_COMPRESSED_POINTERS)
return true;
#else
return false;
#endif
}
#ifdef DEBUG
#define BUILD_TYPE "(debug)"
#else
#define BUILD_TYPE ""
#endif
char *
J9::Options::versionOption(char * option, void * base, TR::OptionTable *entry)
{
J9JITConfig * jitConfig = (J9JITConfig*)base;
PORT_ACCESS_FROM_JAVAVM(jitConfig->javaVM);
j9tty_printf(PORTLIB, "JIT: using build \"%s %s\" %s\n", __DATE__, __TIME__, BUILD_TYPE);
j9tty_printf(PORTLIB, "JIT level: %s\n", TR_BUILD_NAME);
return option;
}
#undef BUILD_TYPE
char *
J9::Options::limitOption(char * option, void * base, TR::OptionTable *entry)
{
if (!J9::Options::getDebug() && !J9::Options::createDebug())
return 0;
if (J9::Options::getJITCmdLineOptions() == NULL)
{
// if JIT options are NULL, means we're processing AOT options now
return J9::Options::getDebug()->limitOption(option, base, entry, TR::Options::getAOTCmdLineOptions(), false);
}
else
{
// otherwise, we're processing JIT options
return J9::Options::getDebug()->limitOption(option, base, entry, TR::Options::getJITCmdLineOptions(), false);
}
}
char *
J9::Options::limitfileOption(char * option, void * base, TR::OptionTable *entry)
{
if (!J9::Options::getDebug() && !J9::Options::createDebug())
return 0;
J9JITConfig * jitConfig = (J9JITConfig*)base;
TR_PseudoRandomNumbersListElement **pseudoRandomNumbersListPtr = NULL;
if (jitConfig != 0)
{
TR::CompilationInfo * compInfo = TR::CompilationInfo::get(jitConfig);
pseudoRandomNumbersListPtr = compInfo->getPersistentInfo()->getPseudoRandomNumbersListPtr();
}
if (J9::Options::getJITCmdLineOptions() == NULL)
{
// if JIT options are NULL, means we're processing AOT options now
return J9::Options::getDebug()->limitfileOption(option, base, entry, TR::Options::getAOTCmdLineOptions(), false, pseudoRandomNumbersListPtr);
}
else
{
// otherwise, we're processing JIT options
return J9::Options::getDebug()->limitfileOption(option, base, entry, TR::Options::getJITCmdLineOptions(), false, pseudoRandomNumbersListPtr);
}
}
char *
J9::Options::inlinefileOption(char * option, void * base, TR::OptionTable *entry)
{
if (!J9::Options::getDebug() && !J9::Options::createDebug())
return 0;
if (J9::Options::getJITCmdLineOptions() == NULL)
{
// if JIT options are NULL, means we're processing AOT options now
return J9::Options::getDebug()->inlinefileOption(option, base, entry, TR::Options::getAOTCmdLineOptions());
}
else
{
// otherwise, we're processing JIT options
return J9::Options::getDebug()->inlinefileOption(option, base, entry, TR::Options::getJITCmdLineOptions());
}
}
struct vmX
{
uint32_t _xstate;
const char *_xname;
int32_t _xsize;
};
static const struct vmX vmSharedStateArray[] =
{
{J9VMSTATE_SHAREDCLASS_FIND, "J9VMSTATE_SHAREDCLASS_FIND", 0}, //9 0x80001
{J9VMSTATE_SHAREDCLASS_STORE, "J9VMSTATE_SHAREDCLASS_STORE", 0}, //10 0x80002
{J9VMSTATE_SHAREDCLASS_MARKSTALE, "J9VMSTATE_SHAREDCLASS_MARKSTALE", 0}, //11 0x80003
{J9VMSTATE_SHAREDAOT_FIND, "J9VMSTATE_SHAREDAOT_FIND", 0}, //12 0x80004
{J9VMSTATE_SHAREDAOT_STORE, "J9VMSTATE_SHAREDAOT_STORE", 0}, //13 0x80005
{J9VMSTATE_SHAREDDATA_FIND, "J9VMSTATE_SHAREDDATA_FIND", 0}, //14 0x80006
{J9VMSTATE_SHAREDDATA_STORE, "J9VMSTATE_SHAREDDATA_STORE", 0}, //15 0x80007
{J9VMSTATE_SHAREDCHARARRAY_FIND, "J9VMSTATE_SHAREDCHARARRAY_FIND", 0}, //16 0x80008
{J9VMSTATE_SHAREDCHARARRAY_STORE, "J9VMSTATE_SHAREDCHARARRAY_STORE", 0}, //17 0x80009
{J9VMSTATE_ATTACHEDDATA_STORE, "J9VMSTATE_ATTACHEDDATA_STORE", 0}, //18 0x8000a
{J9VMSTATE_ATTACHEDDATA_FIND, "J9VMSTATE_ATTACHEDDATA_FIND", 0}, //19 0x8000b
{J9VMSTATE_ATTACHEDDATA_UPDATE, "J9VMSTATE_ATTACHEDDATA_UPDATE", 0}, //20 0x8000c
};
static const struct vmX vmJniStateArray[] =
{
{J9VMSTATE_JNI, "J9VMSTATE_JNI", 0}, //4 0x40000
{J9VMSTATE_JNI_FROM_JIT, "J9VMSTATE_JNI_FROM_JIT", 0}, // 0x40001
};
static const struct vmX vmStateArray[] =
{
{0xdead, "unknown", 0}, //0
{J9VMSTATE_INTERPRETER, "J9VMSTATE_INTERPRETER", 0}, //1 0x10000
{J9VMSTATE_GC, "J9VMSTATE_GC", 0}, //2 0x20000
{J9VMSTATE_GROW_STACK, "J9VMSTATE_GROW_STACK", 0}, //3 0x30000
{J9VMSTATE_JNI, "special", 2}, //4 0x40000
{J9VMSTATE_JIT_CODEGEN, "J9VMSTATE_JIT_CODEGEN", 0}, //5 0x50000
{J9VMSTATE_BCVERIFY, "J9VMSTATE_BCVERIFY", 0}, //6 0x60000
{J9VMSTATE_RTVERIFY, "J9VMSTATE_RTVERIFY", 0}, //7 0x70000
{J9VMSTATE_SHAREDCLASS_FIND, "special", 12}, //8 0x80000
{J9VMSTATE_SNW_STACK_VALIDATE, "J9VMSTATE_SNW_STACK_VALIDATE", 0}, //9 0x110000
{J9VMSTATE_GP, "J9VMSTATE_GP", 0} //10 0xFFFF0000
};
namespace J9
{
char *
Options::gcOnResolveOption(char * option, void * base, TR::OptionTable *entry)
{
J9JITConfig * jitConfig = (J9JITConfig*)base;
jitConfig->gcOnResolveThreshold = 0;
jitConfig->runtimeFlags |= J9JIT_SCAVENGE_ON_RESOLVE;
if (* option == '=')
{
for (option++; * option >= '0' && * option <= '9'; option++)
jitConfig->gcOnResolveThreshold = jitConfig->gcOnResolveThreshold *10 + * option - '0';
}
entry->msgInfo = jitConfig->gcOnResolveThreshold;
return option;
}
char *
Options::vmStateOption(char * option, void * base, TR::OptionTable *entry)
{
J9JITConfig * jitConfig = (J9JITConfig*)base;
PORT_ACCESS_FROM_JAVAVM(jitConfig->javaVM);
char *p = option;
int32_t state = strtol(option, &p, 16);
if (state > 0)
{
uint32_t index = (state >> 16) & 0xFF;
bool invalidState = false;
if (!isValidVmStateIndex(index))
invalidState = true;
if (!invalidState)
{
uint32_t origState = vmStateArray[index]._xstate;
switch (index)
{
case ((J9VMSTATE_JNI>>16) & 0xF):
invalidState = true;
if ((state & 0xFFFF0) == origState)
{
int32_t lowState = state & 0xF;
if (lowState >= 0 && lowState < vmStateArray[index]._xsize)
{
invalidState = false;
j9tty_printf(PORTLIB, "vmState [0x%x]: {%s}\n", state, vmJniStateArray[lowState]._xname);
}
}
break;
case ((J9VMSTATE_SHAREDCLASS_FIND>>16) & 0xF):
invalidState = true;
if ((state & 0xFFFF0) == (origState & 0xFFFF0))
{
int32_t lowState = state & 0xF;
if (lowState >= 0x1 && lowState <= vmStateArray[index]._xsize)
{
invalidState = false;
j9tty_printf(PORTLIB, "vmState [0x%x]: {%s}\n", state, vmSharedStateArray[--lowState]._xname);
}
}
break;
case ((J9VMSTATE_JIT_CODEGEN>>16) & 0xF):
{
if ((state & 0xFF00) == 0) // ILGeneratorPhase
{
j9tty_printf(PORTLIB, "vmState [0x%x]: {%s} {ILGeneration}\n", state, vmStateArray[index]._xname);
}
else if ((state & 0xFF) == 0xFF) // optimizationPhase
{
OMR::Optimizations opts = (OMR::Optimizations)((state >> 8) & 0xFF);
if (opts < OMR::numOpts)
{
j9tty_printf(PORTLIB, "vmState [0x%x]: {%s} {%s}\n", state, vmStateArray[index]._xname, OMR::Optimizer::getOptimizationName(opts));
}
else
j9tty_printf(PORTLIB, "vmState [0x%x]: {%s} {Illegal optimization number}\n", state, vmStateArray[index]._xname);
}
else if ((state & 0xFF00) == 0xFF00) //codegenPhase
{
TR::CodeGenPhase::PhaseValue phase = (TR::CodeGenPhase::PhaseValue)(state & 0xFF);
if ( phase < TR::CodeGenPhase::getNumPhases())
j9tty_printf(PORTLIB, "vmState [0x%x]: {%s} {%s}\n", state, vmStateArray[index]._xname, TR::CodeGenPhase::getName(phase));
else
j9tty_printf(PORTLIB, "vmState [0x%x]: {%s} {Illegal codegen phase number}\n", state, vmStateArray[index]._xname);
}
else
invalidState = true;
}
break;
default:
if (state != origState)
invalidState = true;
else
j9tty_printf(PORTLIB, "vmState [0x%x]: {%s}\n", state, vmStateArray[index]._xname);
break;
}
}
if (invalidState)
j9tty_printf(PORTLIB, "vmState [0x%x]: not a valid vmState\n", state);
}
else
{
// a bad vmState, eat it up atleast
//
j9tty_printf(PORTLIB, "vmState [0x%x]: not a valid vmState\n", state);
}
for (; *p; p++);
return p;
}
char *
Options::loadLimitOption(char * option, void * base, TR::OptionTable *entry)
{
if (!TR::Options::getDebug() && !TR::Options::createDebug())
return 0;
if (TR::Options::getJITCmdLineOptions() == NULL)
{
// if JIT options are NULL, means we're processing AOT options now
return TR::Options::getDebug()->limitOption(option, base, entry, TR::Options::getAOTCmdLineOptions(), true);
}
else
{
// otherwise, we're processing JIT options
J9JITConfig * jitConfig = (J9JITConfig*)base;
PORT_ACCESS_FROM_JAVAVM(jitConfig->javaVM);
// otherwise, we're processing JIT options
j9tty_printf(PORTLIB, "<JIT: loadLimit option should be specified on -Xaot --> '%s'>\n", option);
return option;
//return J9::Options::getDebug()->limitOption(option, base, entry, getJITCmdLineOptions(), true);
}
}
char *
Options::loadLimitfileOption(char * option, void * base, TR::OptionTable *entry)
{
if (!TR::Options::getDebug() && !TR::Options::createDebug())
return 0;
J9JITConfig * jitConfig = (J9JITConfig*)base;
TR_PseudoRandomNumbersListElement **pseudoRandomNumbersListPtr = NULL;
if (jitConfig != 0)
{
TR::CompilationInfo * compInfo = TR::CompilationInfo::get(jitConfig);
pseudoRandomNumbersListPtr = compInfo->getPersistentInfo()->getPseudoRandomNumbersListPtr();
}
if (TR::Options::getJITCmdLineOptions() == NULL)
{
// if JIT options are NULL, means we're processing AOT options now
return TR::Options::getDebug()->limitfileOption(option, base, entry, TR::Options::getAOTCmdLineOptions(), true /* new param */, pseudoRandomNumbersListPtr);
}
else
{
J9JITConfig * jitConfig = (J9JITConfig*)base;
PORT_ACCESS_FROM_JAVAVM(jitConfig->javaVM);
// otherwise, we're processing JIT options
j9tty_printf(PORTLIB, "<JIT: loadLimitfile option should be specified on -Xaot --> '%s'>\n", option);
return option;
}
}
char *
Options::tprofOption(char * option, void * base, TR::OptionTable *entry)
{
J9JITConfig * jitConfig = (J9JITConfig*)base;
PORT_ACCESS_FROM_JAVAVM(jitConfig->javaVM);
enableCompiledMethodLoadHookOnly = true;
return option;
}
char *
Options::setJitConfigRuntimeFlag(char *option, void *base, TR::OptionTable *entry)
{
J9JITConfig *jitConfig = (J9JITConfig*)_feBase;
jitConfig->runtimeFlags |= entry->parm2;
return option;
}
char *
Options::resetJitConfigRuntimeFlag(char *option, void *base, TR::OptionTable *entry)
{
J9JITConfig *jitConfig = (J9JITConfig*)_feBase;
jitConfig->runtimeFlags &= ~(entry->parm2);
return option;
}
char *
Options::setJitConfigNumericValue(char *option, void *base, TR::OptionTable *entry)
{
char *jitConfig = (char*)_feBase;
// All numeric fields in jitConfig are declared as UDATA
*((intptrj_t*)(jitConfig + entry->parm1)) = (intptrj_t)TR::Options::getNumericValue(option);
return option;
}
}
#define SET_JITCONFIG_RUNTIME_FLAG(x) J9::Options::setJitConfigRuntimeFlag, 0, (x), "F", NOT_IN_SUBSET
#define RESET_JITCONFIG_RUNTIME_FLAG(x) J9::Options::resetJitConfigRuntimeFlag, 0, (x), "F", NOT_IN_SUBSET
// DMDM: hack
TR::OptionTable OMR::Options::_feOptions[] = {
{"activeThreadsThresholdForInterpreterSampling=", "M<nnn>\tSampling does not affect invocation count beyond this threshold",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_activeThreadsThreshold, 0, "F%d", NOT_IN_SUBSET },
{"aotMethodCompilesThreshold=", "R<nnn>\tIf this many AOT methods are compiled before exceeding aotMethodThreshold, don't stop AOT compiling",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_aotMethodCompilesThreshold, 0, " %d", NOT_IN_SUBSET},
{"aotMethodThreshold=", "R<nnn>\tNumber of methods found in shared cache after which we stop AOTing",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_aotMethodThreshold, 0, " %d", NOT_IN_SUBSET},
{"aotWarmSCCThreshold=", "R<nnn>\tNumber of methods found in shared cache at startup to declare SCC as warm",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_aotWarmSCCThreshold, 0, " %d", NOT_IN_SUBSET },
{"availableCPUPercentage=", "M<nnn>\tUse it when java process has a fraction of a CPU. Number 1..99 ",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_availableCPUPercentage, 0, "F%d", NOT_IN_SUBSET},
{"bcLimit=", "C<nnn>\tbytecode size limit",
TR::Options::setJitConfigNumericValue, offsetof(J9JITConfig, bcSizeLimit), 0, "P%d"},
{"bcountForBootstrapMethods=", "M<nnn>\tcount for loopy methods belonging to bootstrap classes. "
"Used in no AOT cases",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_countForLoopyBootstrapMethods, 250, "F%d", NOT_IN_SUBSET },
{"bigAppSampleThresholdAdjust=", "O\tadjust the hot and scorching threshold for certain 'big' apps",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_bigAppSampleThresholdAdjust, 0, " %d", NOT_IN_SUBSET},
{"catchSamplingSizeThreshold=", "R<nnn>\tThe sample counter will not be decremented in a catch block "
"if the number of nodes in the compiled method exceeds this threshold",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_catchSamplingSizeThreshold, 0, " %d", NOT_IN_SUBSET},
{"classLoadPhaseInterval=", "O<nnn>\tnumber of sampling ticks before we run "
"again the code for a class loading phase detection",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_classLoadingPhaseInterval, 0, "P%d", NOT_IN_SUBSET},
{"classLoadPhaseQuiesceIntervals=", "O<nnn>\tnumber of intervals we remain in classLoadPhase after it ended",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_numClassLoadPhaseQuiesceIntervals, 0, "F%d", NOT_IN_SUBSET},
{"classLoadPhaseThreshold=", "O<nnn>\tnumber of classes loaded per sampling tick that "
"needs to be attained to enter the class loading phase. "
"Specify a very large value to disable this optimization",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_classLoadingPhaseThreshold, 0, "P%d", NOT_IN_SUBSET},
{"classLoadPhaseVariance=", "O<nnn>\tHow much the classLoadPhaseThreshold can deviate from "
"its average value (as a percentage). Specify an integer 0-99",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_classLoadingPhaseVariance, 0, "F%d", NOT_IN_SUBSET},
{"classLoadRateAverage=", "O<nnn>\tnumber of classes loaded per second on an average machine",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_classLoadingRateAverage, 0, "F%d", NOT_IN_SUBSET},
{"clinit", "D\tforce compilation of <clinit> methods", SET_JITCONFIG_RUNTIME_FLAG(J9JIT_COMPILE_CLINIT) },
{"code=", "C<nnn>\tcode cache size, in KB",
TR::Options::setJitConfigNumericValue, offsetof(J9JITConfig, codeCacheKB), 0, " %d (KB)"},
{"codepad=", "C<nnn>\ttotal code cache pad size, in KB",
TR::Options::setJitConfigNumericValue, offsetof(J9JITConfig, codeCachePadKB), 0, " %d (KB)"},
{"codetotal=", "C<nnn>\ttotal code memory limit, in KB",
TR::Options::setJitConfigNumericValue, offsetof(J9JITConfig, codeCacheTotalKB), 0, " %d (KB)"},
{"compilationBudget=", "O<nnn>\tnumber of usec. Used to better interleave compilation"
"with computation. Use 80000 as a starting point",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_compilationBudget, 0, "P%d", NOT_IN_SUBSET},
{"compilationDelayTime=", "M<nnn>\tnumber of seconds after which we allow compiling",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_compilationDelayTime, 0, " %d", NOT_IN_SUBSET },
{"compilationExpirationTime=", "R<nnn>\tnumber of seconds after which point we will stop compiling",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_compilationExpirationTime, 0, " %d", NOT_IN_SUBSET},
{"compilationPriorityQSZThreshold=", "M<nnn>\tCompilation queue size threshold when priority of post-profiling"
"compilation requests is increased",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_compPriorityQSZThreshold , 0, "F%d", NOT_IN_SUBSET},
{"compilationThreadAffinityMask=", "M<nnn>\taffinity mask for compilation threads. Use hexa without 0x",
TR::Options::setStaticHexadecimal, (intptrj_t)&TR::Options::_compThreadAffinityMask, 0, "F%d", NOT_IN_SUBSET}, // MCT
{"compilationYieldStatsHeartbeatPeriod=", "M<nnn>\tperiodically print stats about compilation yield points "
"Period is in ms. Default is 0 which means don't do it. "
"Values between 1 and 99 ms will be upgraded to 100 ms.",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_compYieldStatsHeartbeatPeriod, 0, "F%d", NOT_IN_SUBSET},
{"compilationYieldStatsThreshold=", "M<nnn>\tprint stats about compilation yield points if the "
"threshold is exceeded. Default 1000 usec. ",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_compYieldStatsThreshold, 0, "F%d", NOT_IN_SUBSET},
{"compThreadPriority=", "M<nnn>\tThe priority of the compilation thread. "
"Use an integer between 0 and 4. Default is 4 (highest priority)",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_compilationThreadPriorityCode, 0, "F%d", NOT_IN_SUBSET},
{"conservativeScorchingSampleThreshold=", "R<nnn>\tLower bound for scorchingSamplingThreshold when scaling based on numProc",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_conservativeScorchingSampleThreshold, 0, "F%d", NOT_IN_SUBSET},
{"countForBootstrapMethods=", "M<nnn>\tcount for loopless methods belonging to bootstrap classes. "
"Used in no AOT cases",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_countForLooplessBootstrapMethods, 1000, "F%d", NOT_IN_SUBSET },
{"cpuCompTimeExpensiveThreshold=", "M<nnn>\tthreshold for when hot & very-hot compilations occupied enough cpu time to be considered expensive in millisecond",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_cpuCompTimeExpensiveThreshold, 0, "F%d", NOT_IN_SUBSET},
{"cpuEntitlementForConservativeScorching=", "M<nnn>\tPercentage. 200 means two full cpus",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_cpuEntitlementForConservativeScorching, 0, "F%d", NOT_IN_SUBSET },
{"cpuUtilThresholdForStarvation=", "M<nnn>\tThreshold for deciding that a comp thread is not starved",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_cpuUtilThresholdForStarvation , 0, "F%d", NOT_IN_SUBSET},
{"data=", "C<nnn>\tdata cache size, in KB",
TR::Options::setJitConfigNumericValue, offsetof(J9JITConfig, dataCacheKB), 0, " %d (KB)"},
{"dataCacheMinQuanta=", "I<nnn>\tMinimum number of quantums per data cache allocation",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_dataCacheMinQuanta, 0, " %d", NOT_IN_SUBSET},
{"dataCacheQuantumSize=", "I<nnn>\tLargest guaranteed common byte multiple of data cache allocations. This value will be rounded up for pointer alignment.",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_dataCacheQuantumSize, 0, " %d", NOT_IN_SUBSET},
{"datatotal=", "C<nnn>\ttotal data memory limit, in KB",
TR::Options::setJitConfigNumericValue, offsetof(J9JITConfig, dataCacheTotalKB), 0, " %d (KB)"},
{"disableIProfilerClassUnloadThreshold=", "R<nnn>\tNumber of classes that can be unloaded before we disable the IProfiler",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_disableIProfilerClassUnloadThreshold, 0, "F%d", NOT_IN_SUBSET},
{"dltPostponeThreshold=", "M<nnn>\tNumber of dlt attepts inv. count for a method is seen not advancing",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_dltPostponeThreshold, 0, "F%d", NOT_IN_SUBSET },
{"exclude=", "D<xxx>\tdo not compile methods beginning with xxx", TR::Options::limitOption, 1, 0, "P%s"},
{"expensiveCompWeight=", "M<nnn>\tweight of a comp request to be considered expensive",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_expensiveCompWeight, 0, "F%d", NOT_IN_SUBSET },
{"experimentalClassLoadPhaseInterval=", "O<nnn>\tnumber of sampling ticks to stay in a class load phase",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_experimentalClassLoadPhaseInterval, 0, "P%d", NOT_IN_SUBSET},
{"gcNotify", "L\tlog scavenge/ggc notifications to stdout", SET_JITCONFIG_RUNTIME_FLAG(J9JIT_GC_NOTIFY) },
{"gcOnResolve", "D[=<nnn>]\tscavenge on every resolve, or every resolve after nnn",
TR::Options::gcOnResolveOption, 0, 0, "F=%d"},
{"GCRQueuedThresholdForCounting=", "M<nnn>\tDisable GCR counting if number of queued GCR requests exceeds this threshold",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_GCRQueuedThresholdForCounting , 0, "F%d", NOT_IN_SUBSET},
#ifdef DEBUG
{"gcTrace=", "D<nnn>\ttrace gc stack walks after gc number nnn",
TR::Options::setJitConfigNumericValue, offsetof(J9JITConfig, gcTraceThreshold), 0, "F%d"},
#endif
{"HWProfilerAOTWarmOptLevelThreshold=", "O<nnn>\tAOT Warm Opt Level Threshold",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwprofilerAOTWarmOptLevelThreshold, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerBufferMaxPercentageToDiscard=", "O<nnn>\tpercentage of HW profiling buffers "
"that JIT is allowed to discard instead of processing",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwProfilerBufferMaxPercentageToDiscard, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerDisableAOT", "O<nnn>\tDisable RI AOT",
SET_OPTION_BIT(TR_HWProfilerDisableAOT), "F", NOT_IN_SUBSET},
{"HWProfilerDisableRIOverPrivageLinkage","O<nnn>\tDisable RI over private linkage",
SET_OPTION_BIT(TR_HWProfilerDisableRIOverPrivateLinkage), "F", NOT_IN_SUBSET},
{"HWProfilerExpirationTime=", "R<nnn>\t",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwProfilerExpirationTime, 0, " %d", NOT_IN_SUBSET },
{"HWProfilerHotOptLevelThreshold=", "O<nnn>\tHot Opt Level Threshold",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwprofilerHotOptLevelThreshold, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerLastOptLevel=", "O<nnn>\tLast Opt level",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwprofilerLastOptLevel, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerNumDowngradesToTurnRION=", "R<nnn>\t",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_numDowngradesToTurnRION, 0, "F%d", NOT_IN_SUBSET },
{"HWProfilerNumOutstandingBuffers=", "O<nnn>\tnumber of outstanding hardware profiling buffers "
"allowed in the system. Specify 0 to disable this optimization",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwprofilerNumOutstandingBuffers, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerPRISamplingRate=", "O<nnn>\tP RI Scaling Factor",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwprofilerPRISamplingRate, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerQSZMaxThresholdToRIDowngrade=", "R<nnn>\t",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_qszMaxThresholdToRIDowngrade, 0, "F%d", NOT_IN_SUBSET },
{"HWProfilerQSZMinThresholdToRIDowngrade=", "R<nnn>\t",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_qszMinThresholdToRIDowngrade, 0, "F%d", NOT_IN_SUBSET },
{"HWProfilerQSZToTurnRION=", "R<nnn>\t",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_qszThresholdToTurnRION, 0, "F%d", NOT_IN_SUBSET },
{"HWProfilerRecompilationDecisionWindow=", "R<nnn>\tNumber of decisions to wait for before looking at stats decision outcome",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwProfilerRecompDecisionWindow, 0, "F%d", NOT_IN_SUBSET },
{"HWProfilerRecompilationFrequencyThreshold=", "R<nnn>\tLess than 1 in N decisions to recompile, turns RI off",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwProfilerRecompFrequencyThreshold, 0, "F%d", NOT_IN_SUBSET },
{"HWProfilerRecompilationInterval=", "O<nnn>\tRecompilation Interval",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwprofilerRecompilationInterval, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerReducedWarmOptLevelThreshold=", "O<nnn>\tReduced Warm Opt Level Threshold",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwprofilerReducedWarmOptLevelThreshold, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerRIBufferPoolSize=", "O<nnn>\tRI Buffer Pool Size",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwprofilerRIBufferPoolSize, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerRIBufferProcessingFrequency=", "O<nnn>\tRI Buffer Processing Frequency",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwProfilerRIBufferProcessingFrequency, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerRIBufferThreshold=", "O<nnn>\tRI Buffer Threshold",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwprofilerRIBufferThreshold, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerScorchingOptLevelThreshold=", "O<nnn>\tScorching Opt Level Threshold",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwprofilerScorchingOptLevelThreshold, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerWarmOptLevelThreshold=", "O<nnn>\tWarm Opt Level Threshold",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwprofilerWarmOptLevelThreshold, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerZRIBufferSize=", "O<nnn>\tZ RI Buffer Size",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwprofilerZRIBufferSize, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerZRIMode=", "O<nnn>\tZ RI Mode",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwprofilerZRIMode, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerZRIRGS=", "O<nnn>\tZ RI Reporting Group Size",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwprofilerZRIRGS, 0, "F%d", NOT_IN_SUBSET},
{"HWProfilerZRISF=", "O<nnn>\tZ RI Scaling Factor",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_hwprofilerZRISF, 0, "F%d", NOT_IN_SUBSET},
{"inlinefile=", "D<filename>\tinline filter defined in filename. "
"Use inlinefile=filename", TR::Options::inlinefileOption, 0, 0, "F%s"},
{"interpreterSamplingDivisor=", "R<nnn>\tThe divisor used to decrease the invocation count when an interpreted method is sampled",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_interpreterSamplingDivisor, 0, " %d", NOT_IN_SUBSET},
{"interpreterSamplingThreshold=", "R<nnn>\tThe maximum invocation count at which a sampling hit will result in the count being divided by the value of interpreterSamplingDivisor",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_interpreterSamplingThreshold, 0, " %d", NOT_IN_SUBSET},
{"interpreterSamplingThresholdInJSR292=", "R<nnn>\tThe maximum invocation count at which a sampling hit will result in the count being divided by the value of interpreterSamplingDivisor on a MethodHandle-oriented workload",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_interpreterSamplingThresholdInJSR292, 0, " %d", NOT_IN_SUBSET},
{"interpreterSamplingThresholdInStartupMode=", "R<nnn>\tThe maximum invocation count at which a sampling hit will result in the count being divided by the value of interpreterSamplingDivisor",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_interpreterSamplingThresholdInStartupMode, 0, " %d", NOT_IN_SUBSET},
{"invocationThresholdToTriggerLowPriComp=", "M<nnn>\tNumber of times a loopy method must be invoked to be eligible for LPQ",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_invocationThresholdToTriggerLowPriComp, 0, "F%d", NOT_IN_SUBSET },
{"iprofilerBufferInterarrivalTimeToExitDeepIdle=", "M<nnn>\tIn ms. If 4 IP buffers arrive back-to-back more frequently than this value, JIT exits DEEP_IDLE",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_iProfilerBufferInterarrivalTimeToExitDeepIdle, 0, "F%d", NOT_IN_SUBSET },
{"iprofilerBufferMaxPercentageToDiscard=", "O<nnn>\tpercentage of interpreter profiling buffers "
"that JIT is allowed to discard instead of processing",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_iprofilerBufferMaxPercentageToDiscard, 0, "F%d", NOT_IN_SUBSET},
{"iprofilerBufferSize=", "I<nnn>\t set the size of each iprofiler buffer",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_iprofilerBufferSize, 0, " %d", NOT_IN_SUBSET},
{"iprofilerFailHistorySize=", "I<nnn>\tNumber of entries for the failure history buffer maintained by Iprofiler",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_iprofilerFailHistorySize, 0, "F%d", NOT_IN_SUBSET},
{"iprofilerFailRateThreshold=", "I<nnn>\tReactivate Iprofiler if fail rate exceeds this threshold. 1-100",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_iprofilerFailRateThreshold, 0, "F%d", NOT_IN_SUBSET},
{"iprofilerIntToTotalSampleRatio=", "O<nnn>\tRatio of Interpreter samples to Total samples",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_iprofilerIntToTotalSampleRatio, 0, "F%d", NOT_IN_SUBSET},
{"iprofilerMaxCount=", "O<nnn>\tmax invocation count for IProfiler to be active",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_maxIprofilingCount, 0, "F%d", NOT_IN_SUBSET},
{"iprofilerMaxCountInStartupMode=", "O<nnn>\tmax invocation count for IProfiler to be active in STARTUP phase",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_maxIprofilingCountInStartupMode, 0, "F%d", NOT_IN_SUBSET},
{"iprofilerMemoryConsumptionLimit=", "O<nnn>\tlimit on memory consumption for interpreter profiling data",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_iProfilerMemoryConsumptionLimit, 0, "P%d", NOT_IN_SUBSET},
{"iprofilerNumOutstandingBuffers=", "O<nnn>\tnumber of outstanding interpreter profiling buffers "
"allowed in the system. Specify 0 to disable this optimization",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_iprofilerNumOutstandingBuffers, 0, "F%d", NOT_IN_SUBSET},
{"iprofilerOffDivisionFactor=", "O<nnn>\tCounts Division factor when IProfiler is Off",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_IprofilerOffDivisionFactor, 0, "F%d", NOT_IN_SUBSET},
{"iprofilerOffSubtractionFactor=", "O<nnn>\tCounts Subtraction factor when IProfiler is Off",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_IprofilerOffSubtractionFactor, 0, "F%d", NOT_IN_SUBSET},
{"iprofilerSamplesBeforeTurningOff=", "O<nnn>\tnumber of interpreter profiling samples "
"needs to be taken after the profiling starts going off to completely turn it off. "
"Specify a very large value to disable this optimization",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_iprofilerSamplesBeforeTurningOff, 0, "P%d", NOT_IN_SUBSET},
{"itFileNamePrefix=", "L<filename>\tprefix for itrace filename",
TR::Options::setStringForPrivateBase, offsetof(TR_JitPrivateConfig,itraceFileNamePrefix), 0, "P%s"},
#if defined(AIXPPC)
{"j2prof", 0, SET_JITCONFIG_RUNTIME_FLAG(J9JIT_J2PROF) },
#endif
{"jProfilingEnablementSampleThreshold=", "M<nnn>\tNumber of global samples to allow generation of JProfiling bodies",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_jProfilingEnablementSampleThreshold, 0, "F%d", NOT_IN_SUBSET },
{"kcaoffsets", "I\tGenerate a header file with offset data for use with KCA", TR::Options::kcaOffsets, 0, 0, "F" },
{"largeTranslationTime=", "D<nnn>\tprint IL trees for methods that take more than this value (usec)"
"to compile. Need to have a log file defined on command line",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_largeTranslationTime, 0, "F%d", NOT_IN_SUBSET},
{"limit=", "D<xxx>\tonly compile methods beginning with xxx", TR::Options::limitOption, 0, 0, "P%s"},
{"limitfile=", "D<filename>\tfilter method compilation as defined in filename. "
"Use limitfile=(filename,firstLine,lastLine) to limit lines considered from firstLine to lastLine",
TR::Options::limitfileOption, 0, 0, "F%s"},
{"loadExclude=", "D<xxx>\tdo not relocate AOT methods beginning with xxx", TR::Options::loadLimitOption, 1, 0, "P%s"},
{"loadLimit=", "D<xxx>\tonly relocate AOT methods beginning with xxx", TR::Options::loadLimitOption, 0, 0, "P%s"},
{"loadLimitFile=", "D<filename>\tfilter AOT method relocation as defined in filename. "
"Use loadLimitfile=(filename,firstLine,lastLine) to limit lines considered from firstLine to lastLine",
TR::Options::loadLimitfileOption, 0, 0, "P%s"},
{"localCSEFrequencyThreshold=", "O<nnn>\tBlocks with frequency lower than the threshold will not be considered by localCSE",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_localCSEFrequencyThreshold, 0, "F%d", NOT_IN_SUBSET },
{"loopyMethodDivisionFactor=", "O<nnn>\tCounts Division factor for Loopy methods",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_LoopyMethodDivisionFactor, 0, "F%d", NOT_IN_SUBSET},
{"loopyMethodSubtractionFactor=", "O<nnn>\tCounts Subtraction factor for Loopy methods",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_LoopyMethodSubtractionFactor, 0, "F%d", NOT_IN_SUBSET},
{"lowerBoundNumProcForScaling=", "M<nnn>\tLower than this numProc we'll use the default scorchingSampleThreshold",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_lowerBoundNumProcForScaling, 0, "F%d", NOT_IN_SUBSET},
{"lowVirtualMemoryMBThreshold=","M<nnn>\tThreshold when we declare we are running low on virtual memory. Use 0 to disable the feature",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_lowVirtualMemoryMBThreshold, 0, "F%d", NOT_IN_SUBSET},
{"maxCheckcastProfiledClassTests=", "R<nnn>\tnumber inlined profiled classes for profiledclass test in checkcast/instanceof",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_maxCheckcastProfiledClassTests, 0, "%d", NOT_IN_SUBSET},
{"maxOnsiteCacheSlotForInstanceOf=", "R<nnn>\tnumber of onsite cache slots for instanceOf",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_maxOnsiteCacheSlotForInstanceOf, 0, "%d", NOT_IN_SUBSET},
{"minSamplingPeriod=", "R<nnn>\tminimum number of milliseconds between samples for hotness",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_minSamplingPeriod, 0, "P%d", NOT_IN_SUBSET},
{"minSuperclassArraySize=", "I<nnn>\t set the size of the minimum superclass array size",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_minimumSuperclassArraySize, 0, " %d", NOT_IN_SUBSET},
{"noregmap", 0, RESET_JITCONFIG_RUNTIME_FLAG(J9JIT_CG_REGISTER_MAPS) },
{"numCodeCachesOnStartup=", "R<nnn>\tnumber of code caches to create at startup",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_numCodeCachesToCreateAtStartup, 0, "F%d", NOT_IN_SUBSET},
{"numDLTBufferMatchesToEagerlyIssueCompReq=", "R<nnn>\t",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_numDLTBufferMatchesToEagerlyIssueCompReq, 0, "F%d", NOT_IN_SUBSET},
{"numInterpCompReqToExitIdleMode=", "M<nnn>\tNumber of first time comp. req. that takes the JIT out of idle mode",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_numFirstTimeCompilationsToExitIdleMode, 0, "F%d", NOT_IN_SUBSET },
{"profileAllTheTime=", "R<nnn>\tInterpreter profiling will be on all the time",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_profileAllTheTime, 0, " %d", NOT_IN_SUBSET},
{"queuedInvReqThresholdToDowngradeOptLevel=", "M<nnn>\tDowngrade opt level if too many inv req",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_numQueuedInvReqToDowngradeOptLevel , 0, "F%d", NOT_IN_SUBSET},
{"queueSizeThresholdToDowngradeDuringCLP=", "M<nnn>\tCompilation queue size threshold (interpreted methods) when opt level is downgraded during class load phase",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_qsziThresholdToDowngradeDuringCLP, 0, "F%d", NOT_IN_SUBSET },
{"queueSizeThresholdToDowngradeOptLevel=", "M<nnn>\tCompilation queue size threshold when opt level is downgraded",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_qszThresholdToDowngradeOptLevel , 0, "F%d", NOT_IN_SUBSET},
{"queueSizeThresholdToDowngradeOptLevelDuringStartup=", "M<nnn>\tCompilation queue size threshold when opt level is downgraded during startup phase",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_qszThresholdToDowngradeOptLevelDuringStartup , 0, "F%d", NOT_IN_SUBSET },
{"regmap", 0, SET_JITCONFIG_RUNTIME_FLAG(J9JIT_CG_REGISTER_MAPS) },
{"relaxedCompilationLimitsSampleThreshold=", "R<nnn>\tGlobal samples below this threshold means we can use higher compilation limits",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_relaxedCompilationLimitsSampleThreshold, 0, " %d", NOT_IN_SUBSET },
{"resetCountThreshold=", "R<nnn>\tThe number of global samples which if exceed during a method's sampling interval will cause the method's sampling counter to be incremented by the number of samples in a sampling interval",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_resetCountThreshold, 0, " %d", NOT_IN_SUBSET},
{"rtlog=", "L<filename>\twrite verbose run-time output to filename",
TR::Options::setStringForPrivateBase, offsetof(TR_JitPrivateConfig,rtLogFileName), 0, "P%s"},
{"rtResolve", "D\ttreat all data references as unresolved", SET_JITCONFIG_RUNTIME_FLAG(J9JIT_RUNTIME_RESOLVE) },
{"safeReservePhysicalMemoryValue=", "C<nnn>\tsafe buffer value before we risk running out of physical memory, in KB",
TR::Options::setStaticNumericKBAdjusted, (intptrj_t)&TR::Options::_safeReservePhysicalMemoryValue, 0, " %d (KB)"},
{"sampleDontSwitchToProfilingThreshold=", "R<nnn>\tThe maximum number of global samples taken during a sample interval for which the method is denied swithing to profiling",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_sampleDontSwitchToProfilingThreshold, 0, " %d", NOT_IN_SUBSET},
{"sampleThresholdVariationAllowance=", "R<nnn>\tThe percentage that we add or subtract from"
" the original threshold to adjust for method code size."
" Must be 0--100. Make it 0 to disable this optimization.",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_sampleThresholdVariationAllowance, 0, "P%d", NOT_IN_SUBSET},
{"samplingFrequencyInDeepIdleMode=", "R<nnn>\tnumber of milliseconds between samples for hotness - in deep idle mode",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_samplingFrequencyInDeepIdleMode, 0, "F%d", NOT_IN_SUBSET},
{"samplingFrequencyInIdleMode=", "R<nnn>\tnumber of milliseconds between samples for hotness - in idle mode",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_samplingFrequencyInIdleMode, 0, "F%d", NOT_IN_SUBSET},
{"samplingHeartbeatInterval=", "R<nnn>\tnumber of 100ms periods before sampling heartbeat",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_sampleHeartbeatInterval, 0, "F%d", NOT_IN_SUBSET},
{"samplingThreadExpirationTime=", "R<nnn>\tnumber of seconds after which point we will stop the sampling thread",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_samplingThreadExpirationTime, 0, " %d", NOT_IN_SUBSET},
{"scorchingSampleThreshold=", "R<nnn>\tThe maximum number of global samples taken during a sample interval for which the method will be recompiled as scorching",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_scorchingSampleThreshold, 0, " %d", NOT_IN_SUBSET},
{"scratchSpaceFactorWhenJSR292Workload=","M<nnn>\tMultiplier for scratch space limit when MethodHandles are in use",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_scratchSpaceFactorWhenJSR292Workload, 0, "F%d", NOT_IN_SUBSET},
{"scratchSpaceLimitKBWhenLowVirtualMemory=","M<nnn>\tLimit for memory used by JIT when running on low virtual memory",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_scratchSpaceLimitKBWhenLowVirtualMemory, 0, "F%d", NOT_IN_SUBSET},
{"secondaryClassLoadPhaseThreshold=", "O<nnn>\tWhen class load rate just dropped under the CLP threshold "
"we use this secondary threshold to determine class load phase",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_secondaryClassLoadingPhaseThreshold, 0, "F%d", NOT_IN_SUBSET},
{"seriousCompFailureThreshold=", "M<nnn>\tnumber of srious compilation failures after which we write a trace point in the snap file",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_seriousCompFailureThreshold, 0, "F%d", NOT_IN_SUBSET},
{"singleCache", "C\tallow only one code cache and one data cache to be allocated", RESET_JITCONFIG_RUNTIME_FLAG(J9JIT_GROW_CACHES) },
{"smallMethodBytecodeSizeThreshold=", "O<nnn> Threshold for determining small methods\t "
"(measured in number of bytecodes)",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_smallMethodBytecodeSizeThreshold, 0, "F%d", NOT_IN_SUBSET},
{"smallMethodBytecodeSizeThresholdForCold=", "O<nnn> Threshold for determining small methods at cold\t "
"(measured in number of bytecodes)",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_smallMethodBytecodeSizeThresholdForCold, 0, "F%d", NOT_IN_SUBSET},
{"stack=", "C<nnn>\tcompilation thread stack size in KB",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_stackSize, 0, " %d", NOT_IN_SUBSET},
#ifdef DEBUG
{"stats", "L\tdump statistics at end of run", SET_JITCONFIG_RUNTIME_FLAG(J9JIT_DUMP_STATS) },
#endif
{"testMode", "D\tcompile but do not run the compiled code", SET_JITCONFIG_RUNTIME_FLAG(J9JIT_TESTMODE) },
#if defined(TR_HOST_X86) || defined(TR_HOST_POWER)
{"tlhPrefetchBoundaryLineCount=", "O<nnn>\tallocation prefetch boundary line for allocation prefetch",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_TLHPrefetchBoundaryLineCount, 0, "P%d", NOT_IN_SUBSET},
{"tlhPrefetchLineCount=", "O<nnn>\tallocation prefetch line count for allocation prefetch",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_TLHPrefetchLineCount, 0, "P%d", NOT_IN_SUBSET},
{"tlhPrefetchLineSize=", "O<nnn>\tallocation prefetch line size for allocation prefetch",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_TLHPrefetchLineSize, 0, "P%d", NOT_IN_SUBSET},
{"tlhPrefetchSize=", "O<nnn>\tallocation prefetch size for allocation prefetch",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_TLHPrefetchSize, 0, "P%d", NOT_IN_SUBSET},
{"tlhPrefetchStaggeredLineCount=", "O<nnn>\tallocation prefetch staggered line for allocation prefetch",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_TLHPrefetchStaggeredLineCount, 0, "P%d", NOT_IN_SUBSET},
{"tlhPrefetchTLHEndLineCount=", "O<nnn>\tallocation prefetch line count for end of TLH check",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_TLHPrefetchTLHEndLineCount, 0, "P%d", NOT_IN_SUBSET},
#endif
{"tossCode", "D\tthrow code and data away after compiling", SET_JITCONFIG_RUNTIME_FLAG(J9JIT_TOSS_CODE) },
{"tprof", "D\tgenerate time profiles with SWTRACE (requires -Xrunjprof12x:jita2n)",
TR::Options::tprofOption, 0, 0, "F"},
{"updateFreeMemoryMinPeriod=", "R<nnn>\tnumber of milliseconds after which point we will update the free physical memory available",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_updateFreeMemoryMinPeriod, 0, " %d", NOT_IN_SUBSET},
{"upperBoundNumProcForScaling=", "M<nnn>\tHigher than this numProc we'll use the conservativeScorchingSampleThreshold",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_upperBoundNumProcForScaling, 0, "F%d", NOT_IN_SUBSET},
{ "userClassLoadPhaseThreshold=", "O<nnn>\tnumber of user classes loaded per sampling tick that "
"needs to be attained to enter the class loading phase. "
"Specify a very large value to disable this optimization",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_userClassLoadingPhaseThreshold, 0, "P%d", NOT_IN_SUBSET },
{"verbose", "L\twrite compiled method names to vlog file or stdout in limitfile format",
TR::Options::setVerboseBitsInJitPrivateConfig, offsetof(J9JITConfig, privateConfig), 5, "F=1"},
{"verbose=", "L{regex}\tlist of verbose output to write to vlog or stdout",
TR::Options::setVerboseBitsInJitPrivateConfig, offsetof(J9JITConfig, privateConfig), 0, "F"},
{"version", "L\tdisplay the jit build version",
TR::Options::versionOption, 0, 0},
{"veryHotSampleThreshold=", "R<nnn>\tThe maximum number of global samples taken during a sample interval for which the method will be recompiled at hot with normal priority",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_veryHotSampleThreshold, 0, " %d", NOT_IN_SUBSET},
{"vlog=", "L<filename>\twrite verbose output to filename",
TR::Options::setString, offsetof(J9JITConfig,vLogFileName), 0, "F%s"},
{"vmState=", "L<vmState>\tdecode a given vmState",
TR::Options::vmStateOption, 0, 0},
{"waitTimeToEnterDeepIdleMode=", "M<nnn>\tTime spent in idle mode (ms) after which we enter deep idle mode sampling",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_waitTimeToEnterDeepIdleMode, 0, "F%d", NOT_IN_SUBSET},
{"waitTimeToEnterIdleMode=", "M<nnn>\tIdle time (ms) after which we enter idle mode sampling",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_waitTimeToEnterIdleMode, 0, "F%d", NOT_IN_SUBSET},
{"waitTimeToExitStartupMode=", "M<nnn>\tTime (ms) spent outside startup needed to declare NON_STARTUP mode",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_waitTimeToExitStartupMode, 0, "F%d", NOT_IN_SUBSET},
{"waitTimeToGCR=", "M<nnn>\tTime (ms) spent outside startup needed to start guarded counting recompilations",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_waitTimeToGCR, 0, "F%d", NOT_IN_SUBSET},
{"waitTimeToStartIProfiler=", "M<nnn>\tTime (ms) spent outside startup needed to start IProfiler if it was off",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_waitTimeToStartIProfiler, 0, "F%d", NOT_IN_SUBSET},
{"weightOfAOTLoad=", "M<nnn>\tWeight of an AOT load. 0 by default",
TR::Options::setStaticNumeric, (intptrj_t)&TR::Options::_weightOfAOTLoad, 0, "F%d", NOT_IN_SUBSET},
{"weightOfJSR292=", "M<nnn>\tWeight of an JSR292 compilation. Number between 0 and 255",