* merged with tip (040f180a056b)
[cacao.git] / src / vm / options.c
index 42adb3f909c86005de44022c4b3444fe839f1bd5..0366ebefe7cf2f54177b8a24f47aa611888af726 100644 (file)
@@ -166,6 +166,9 @@ int      opt_ThreadStackSize              = 0;
 
 int      opt_DebugExceptions              = 0;
 int      opt_DebugFinalizer               = 0;
+#if defined(ENABLE_JITCACHE)
+int      opt_DebugJitCache                = 0;
+#endif
 int      opt_DebugLocalReferences         = 0;
 int      opt_DebugLocks                   = 0;
 int      opt_DebugPackage                 = 0;
@@ -236,6 +239,7 @@ enum {
 
        OPT_DebugExceptions,
        OPT_DebugFinalizer,
+  OPT_DebugJitCache,
        OPT_DebugLocalReferences,
        OPT_DebugLocks,
        OPT_DebugPackage,
@@ -289,6 +293,9 @@ option_t options_XX[] = {
 
        { "DebugExceptions",              OPT_DebugExceptions,              OPT_TYPE_BOOLEAN, "debug exceptions" },
        { "DebugFinalizer",               OPT_DebugFinalizer,               OPT_TYPE_BOOLEAN, "debug finalizer thread" },
+#if defined (ENABLE_JITCACHE)
+  { "DebugJitCache",                OPT_DebugJitCache,                OPT_TYPE_BOOLEAN, "debug JIT cache actions" },
+#endif
        { "DebugLocalReferences",         OPT_DebugLocalReferences,         OPT_TYPE_BOOLEAN, "print debug information for local reference tables" },
        { "DebugLocks",                   OPT_DebugLocks,                   OPT_TYPE_BOOLEAN, "print debug information for locks" },
        { "DebugPackage",                 OPT_DebugPackage,                 OPT_TYPE_BOOLEAN, "debug Java boot-packages" },
@@ -627,6 +634,12 @@ void options_xx(JavaVMInitArgs *vm_args)
                        opt_DebugFinalizer = enable;
                        break;
 
+#if defined(ENABLE_JITCACHE)
+    case OPT_DebugJitCache:
+      opt_DebugJitCache = enable;
+      break;
+#endif
+
                case OPT_DebugLocalReferences:
                        opt_DebugLocalReferences = enable;
                        break;