Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / metadata / lock-tracer.c
index 8ca4a27ab8211ed592ba4f0cbbe4d7f78d4ad91f..bda05487d5fde39a960e535e54c5e513a8e9b18d 100644 (file)
@@ -1,5 +1,6 @@
-/*
- * lock-tracer.c: Runtime simple lock tracer
+/**
+ * \file
+ * Runtime simple lock tracer
  *
  * Authors:
  *     Rodrigo Kumpera (rkumpera@novell.com)
@@ -20,7 +21,6 @@
 #include <execinfo.h>
 #endif
 
-#include <mono/io-layer/io-layer.h>
 #include <mono/utils/mono-compiler.h>
 
 #include "lock-tracer.h"
@@ -74,8 +74,10 @@ mono_locks_tracer_init (void)
        int res;
        char *name;
        mono_os_mutex_init_recursive (&tracer_lock);
-       if (!g_getenv ("MONO_ENABLE_LOCK_TRACER"))
+
+       if (!g_hasenv ("MONO_ENABLE_LOCK_TRACER"))
                return;
+
        name = g_strdup_printf ("locks.%d", getpid ());
        trace_file = fopen (name, "w+");
        g_free (name);