projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #5714 from alexischr/update_bockbuild
[mono.git]
/
mono
/
metadata
/
lock-tracer.c
diff --git
a/mono/metadata/lock-tracer.c
b/mono/metadata/lock-tracer.c
index 66f7d6b560d084cac2f07ffc20249e62b699c8f9..bda05487d5fde39a960e535e54c5e513a8e9b18d 100644
(file)
--- a/
mono/metadata/lock-tracer.c
+++ b/
mono/metadata/lock-tracer.c
@@
-1,5
+1,6
@@
-/*
- * lock-tracer.c: Runtime simple lock tracer
+/**
+ * \file
+ * Runtime simple lock tracer
*
* Authors:
* Rodrigo Kumpera (rkumpera@novell.com)
*
* Authors:
* Rodrigo Kumpera (rkumpera@novell.com)
@@
-20,7
+21,7
@@
#include <execinfo.h>
#endif
#include <execinfo.h>
#endif
-#include <mono/
io-layer/io-lay
er.h>
+#include <mono/
utils/mono-compil
er.h>
#include "lock-tracer.h"
#include "lock-tracer.h"
@@
-73,8
+74,10
@@
mono_locks_tracer_init (void)
int res;
char *name;
mono_os_mutex_init_recursive (&tracer_lock);
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;
return;
+
name = g_strdup_printf ("locks.%d", getpid ());
trace_file = fopen (name, "w+");
g_free (name);
name = g_strdup_printf ("locks.%d", getpid ());
trace_file = fopen (name, "w+");
g_free (name);
@@
-141,8
+144,6
@@
mono_locks_lock_released (RuntimeLocks kind, gpointer lock)
add_record (RECORD_LOCK_RELEASED, kind, lock);
}
#else
add_record (RECORD_LOCK_RELEASED, kind, lock);
}
#else
- #ifdef _MSC_VER
- // Quiet Visual Studio linker warning, LNK4221, in cases when this source file intentional ends up empty.
- void __mono_win32_lock_tracer_quiet_lnk4221(void) {}
- #endif
+
+MONO_EMPTY_SOURCE_FILE (lock_tracer);
#endif /* LOCK_TRACER */
#endif /* LOCK_TRACER */