1 /* src/vmcore/options.h - define global options extern
3 Copyright (C) 1996-2005, 2006, 2007, 2008
4 CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
6 This file is part of CACAO.
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2, or (at
11 your option) any later version.
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
39 #include "native/jni.h"
41 #include "vm/global.h"
44 /* reserved option numbers ****************************************************/
46 /* define these negative since the other options are an enum */
53 typedef struct opt_struct opt_struct;
62 typedef struct option_t option_t;
72 /* global variables ***********************************************************/
80 extern bool opt_intrp;
85 extern s4 opt_heapmaxsize;
86 extern s4 opt_heapstartsize;
87 extern s4 opt_stacksize;
89 extern bool opt_verbose;
90 extern bool opt_debugcolor;
91 extern bool compileall;
93 extern bool loadverbose; /* Print debug messages during loading */
94 extern bool initverbose; /* Log class initialization */
96 extern bool opt_verboseclass;
97 extern bool opt_verbosegc;
98 extern bool opt_verbosejni;
99 extern bool opt_verbosecall;
101 extern bool showmethods;
102 extern bool showconstantpool;
105 extern char *opt_method;
106 extern char *opt_signature;
108 extern bool compileverbose;
109 extern bool showstack;
111 extern bool opt_showdisassemble;
112 extern bool opt_shownops;
113 extern bool opt_showddatasegment;
114 extern bool opt_showintermediate;
116 extern bool checkbounds;
117 extern bool opt_noieee;
118 extern bool checksync;
119 #if defined(ENABLE_LOOP)
120 extern bool opt_loops;
123 extern bool makeinitializations;
125 #if defined(ENABLE_STATISTICS)
126 extern bool opt_stat;
127 extern bool opt_getloadingtime;
128 extern bool opt_getcompilingtime;
130 #if defined(ENABLE_VERIFIER)
131 extern bool opt_verify;
134 #if defined(ENABLE_PROFILING)
135 extern bool opt_prof;
136 extern bool opt_prof_bb;
139 /* optimization options *******************************************************/
141 #if defined(ENABLE_IFCONV)
142 extern bool opt_ifconv;
145 #if defined(ENABLE_LSRA) || defined(ENABLE_SSA)
146 extern bool opt_lsra;
148 #if defined(ENABLE_SSA)
149 extern bool opt_ssa_dce; /* enable dead code elemination */
150 extern bool opt_ssa_cp; /* enable copy propagation */
153 /* interpreter options ********************************************************/
155 #if defined(ENABLE_INTRP)
156 extern bool opt_no_dynamic;
157 extern bool opt_no_replication;
158 extern bool opt_no_quicksuper;
160 extern s4 opt_static_supers;
161 extern bool vm_debug;
164 /* debug output filtering options *********************************************/
166 #if defined(ENABLE_DEBUG_FILTER)
167 extern const char *opt_filter_verbosecall_include;
168 extern const char *opt_filter_verbosecall_exclude;
169 extern const char *opt_filter_show_method;
173 /* -XX options ****************************************************************/
175 /* NOTE: For better readability keep these alpha-sorted. */
177 /* Options which must always be available (production options in
180 extern int64_t opt_MaxDirectMemorySize;
181 extern int opt_MaxPermSize;
182 extern int opt_PermSize;
183 extern int opt_ThreadStackSize;
185 /* Debugging options which can be turned off. */
187 extern int opt_DebugExceptions;
188 extern int opt_DebugFinalizer;
189 extern int opt_DebugLocalReferences;
190 extern int opt_DebugLocks;
191 extern int opt_DebugPatcher;
192 extern int opt_DebugPackage;
193 extern int opt_DebugProperties;
194 extern int opt_DebugStackFrameInfo;
195 extern int opt_DebugStackTrace;
196 extern int opt_DebugThreads;
197 #if defined(ENABLE_DISASSEMBLER)
198 extern int opt_DisassembleStubs;
200 #if defined(ENABLE_OPAGENT)
201 extern int opt_EnableOpagent;
203 #if defined(ENABLE_GC_CACAO)
204 extern int opt_GCDebugRootSet;
205 extern int opt_GCStress;
207 #if defined(ENABLE_INLINING)
208 extern int opt_Inline;
209 #if defined(ENABLE_INLINING_DEBUG) || !defined(NDEBUG)
210 extern int opt_InlineAll;
211 extern int opt_InlineCount;
212 extern int opt_InlineMaxSize;
213 extern int opt_InlineMinSize;
216 extern int opt_PrintConfig;
217 extern int opt_ProfileGCMemoryUsage;
218 extern int opt_ProfileMemoryUsage;
219 extern FILE *opt_ProfileMemoryUsageGNUPlot;
220 #if defined(ENABLE_REPLACEMENT)
221 extern int opt_TestReplacement;
223 extern int opt_TraceCompilerCalls;
224 extern int opt_TraceExceptions;
225 extern int opt_TraceHPI;
226 #if defined(ENABLE_INLINING) && !defined(NDEBUG)
227 extern int opt_TraceInlining;
229 extern int opt_TraceJavaCalls;
230 extern int opt_TraceJNICalls;
231 extern int opt_TraceJVMCalls;
232 extern int opt_TraceJVMCallsVerbose;
233 extern int opt_TraceLinkClass;
234 #if defined(ENABLE_REPLACEMENT)
235 extern int opt_TraceReplacement;
237 extern int opt_TraceSubsystemInitialization;
238 extern int opt_TraceTraps;
241 /* function prototypes ********************************************************/
243 int options_get(opt_struct *opts, JavaVMInitArgs *vm_args);
244 void options_xx(JavaVMInitArgs *vm_args);
247 /* debug **********************************************************************/
250 # define TRACESUBSYSTEMINITIALIZATION(text) \
252 if (opt_TraceSubsystemInitialization) { \
253 log_println("[Initializing subsystem: %s]", text); \
257 # define TRACESUBSYSTEMINITIALIZATION(text)
264 #endif /* _OPTIONS_H */
268 * These are local overrides for various environment variables in Emacs.
269 * Please do not remove this and leave it at the end of the file, where
270 * Emacs will automagically detect them.
271 * ---------------------------------------------------------------------
274 * indent-tabs-mode: t