Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Molaro <lupus@oddwiz.org>2004-08-03 18:55:15 +0400
committerPaolo Molaro <lupus@oddwiz.org>2004-08-03 18:55:15 +0400
commitfe215f83a29738dd556f713efd827e11ebfff158 (patch)
treed043ef7f4d285a6819881367b8b039c37e463887
parentd62e5aabdcb84b53a4ced398d1dbacde5ac43778 (diff)
Tue Aug 3 17:54:17 CEST 2004 Paolo Molaro <lupus@ximian.com>
* gc.c: make GC warning messages use the trace API, they are just noise to most of the users. svn path=/branches/mono-1-0/mono/; revision=31805
-rw-r--r--mono/metadata/ChangeLog5
-rw-r--r--mono/metadata/gc.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/mono/metadata/ChangeLog b/mono/metadata/ChangeLog
index 1093d04e7c2..4aad6add664 100644
--- a/mono/metadata/ChangeLog
+++ b/mono/metadata/ChangeLog
@@ -1,4 +1,9 @@
+Tue Aug 3 17:54:17 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+ * gc.c: make GC warning messages use the trace API, they are just
+ noise to most of the users.
+
Tue Aug 3 16:40:17 CEST 2004 Paolo Molaro <lupus@ximian.com>
* gc.c, object.h: mono_gc_handle_*() interface and
diff --git a/mono/metadata/gc.c b/mono/metadata/gc.c
index 9ac17eb0860..73167d0e9dc 100644
--- a/mono/metadata/gc.c
+++ b/mono/metadata/gc.c
@@ -16,6 +16,7 @@
#include <mono/metadata/exception.h>
#include <mono/metadata/domain-internals.h>
#include <mono/metadata/class-internals.h>
+#include <mono/utils/mono-logger.h>
#define GC_I_HIDE_POINTERS
#include <mono/os/gc_wrapper.h>
@@ -645,6 +646,12 @@ static GCThreadFunctions mono_gc_thread_vtable = {
};
#endif /* WITH_INCLUDED_LIBGC */
+static void
+mono_gc_warning (char *msg, GC_word arg)
+{
+ mono_trace (G_LOG_LEVEL_WARNING, MONO_TRACE_GC, msg, (unsigned long)arg);
+}
+
void mono_gc_init (void)
{
InitializeCriticalSection (&handle_section);