* src/vm/finalizer.c (finalizer_run): Fixed for handles and added boehm-hack.
[cacao.git] / src / vmcore / options.h
index 37210caed291df49a1c4d4a687a77ac0264a699e..54ee97de5483bbf213492d32696e408d83ede790 100644 (file)
@@ -22,8 +22,6 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: options.h 7450 2007-03-04 19:13:29Z edwin $
-
 */
 
 
@@ -32,6 +30,9 @@
 
 
 #include "config.h"
+
+#include <stdint.h>
+
 #include "vm/types.h"
 
 #include "native/jni.h"
@@ -57,6 +58,16 @@ struct opt_struct {
 };
 
 
+typedef struct option_t option_t;
+
+struct option_t {
+       char *name;
+       int   value;
+       int   type;
+       char *doc;
+};
+
+
 /* global variables ***********************************************************/
 
 extern s4    opt_index;
@@ -79,15 +90,12 @@ extern bool opt_debugcolor;
 extern bool compileall;
 
 extern bool loadverbose;         /* Print debug messages during loading */
-extern bool linkverbose;
 extern bool initverbose;         /* Log class initialization */ 
 
 extern bool opt_verboseclass;
 extern bool opt_verbosegc;
 extern bool opt_verbosejni;
 extern bool opt_verbosecall;
-extern bool opt_verboseexception;
-extern bool opt_verbosememory;
 
 extern bool showmethods;
 extern bool showconstantpool;
@@ -103,11 +111,8 @@ extern bool opt_showdisassemble;
 extern bool opt_shownops;
 extern bool opt_showddatasegment;
 extern bool opt_showintermediate;
-extern bool opt_showexceptionstubs;
-extern bool opt_shownativestub;
 
 extern bool checkbounds;
-extern bool checknull;
 extern bool opt_noieee;
 extern bool checksync;
 #if defined(ENABLE_LOOP)
@@ -124,7 +129,6 @@ extern bool opt_getcompilingtime;
 #if defined(ENABLE_VERIFIER)
 extern bool opt_verify;
 #endif
-extern bool opt_eager;
 
 #if defined(ENABLE_PROFILING)
 extern bool opt_prof;
@@ -136,7 +140,6 @@ extern bool opt_prof_bb;
 #if defined(ENABLE_INLINING)
 extern bool opt_inlining;
 #if defined(ENABLE_INLINING_DEBUG) || !defined(NDEBUG)
-extern s4 opt_replace_verbose;
 extern s4 opt_inline_debug_min_size;
 extern s4 opt_inline_debug_max_size;
 extern s4 opt_inline_debug_end_counter;
@@ -170,10 +173,61 @@ extern s4   opt_static_supers;
 extern bool vm_debug;
 #endif
 
+/* debug output filtering options *********************************************/
+
+#if defined(ENABLE_DEBUG_FILTER)
+extern const char *opt_filter_verbosecall_include;
+extern const char *opt_filter_verbosecall_exclude;
+extern const char *opt_filter_show_method;
+#endif
+
+
+/* -XX options ****************************************************************/
+
+/* NOTE: For better readability keep these alpha-sorted. */
+
+extern int      opt_DebugExceptions;
+extern int      opt_DebugFinalizer;
+extern int      opt_DebugLocalReferences;
+extern int      opt_DebugLocks;
+extern int      opt_DebugPatcher;
+extern int      opt_DebugPackage;
+extern int      opt_DebugProperties;
+extern int32_t  opt_DebugStackFrameInfo;
+extern int      opt_DebugStackTrace;
+extern int      opt_DebugThreads;
+#if defined(ENABLE_DISASSEMBLER)
+extern int      opt_DisassembleStubs;
+#endif
+#if defined(ENABLE_GC_CACAO)
+extern int32_t  opt_GCDebugRootSet;
+extern int32_t  opt_GCStress;
+#endif
+extern int32_t  opt_MaxPermSize;
+extern int32_t  opt_PermSize;
+extern int      opt_PrintConfig;
+extern int32_t  opt_ProfileGCMemoryUsage;
+extern int32_t  opt_ProfileMemoryUsage;
+extern FILE    *opt_ProfileMemoryUsageGNUPlot;
+#if defined(ENABLE_REPLACEMENT)
+extern int      opt_TestReplacement;
+#endif
+extern int32_t  opt_ThreadStackSize;
+extern int      opt_TraceCompilerCalls;
+extern int32_t  opt_TraceExceptions;
+extern int32_t  opt_TraceJavaCalls;
+extern int32_t  opt_TraceJNICalls;
+extern int32_t  opt_TraceJVMCalls;
+extern int32_t  opt_TraceLinkClass;
+#if defined(ENABLE_REPLACEMENT)
+extern int32_t  opt_TraceReplacement;
+#endif
+
 
 /* function prototypes ********************************************************/
 
-s4 options_get(opt_struct *opts, JavaVMInitArgs *vm_args);
+s4   options_get(opt_struct *opts, JavaVMInitArgs *vm_args);
+void options_xx(JavaVMInitArgs *vm_args);
 
 #endif /* _OPTIONS_H */