Merge pull request #993 from ancailliau/fix-datacontract-json-serialization
[mono.git] / mono / utils / mono-codeman.c
index 9e468bfd6e098c36d53e81d51f0c181d19b4a2ca..abdcda699722247ae3ff3e2e59d2a22d82832bd5 100644 (file)
@@ -28,9 +28,9 @@
 #endif
 
 static uintptr_t code_memory_used = 0;
-static size_t dynamic_code_alloc_count;
-static size_t dynamic_code_bytes_count;
-static size_t dynamic_code_frees_count;
+static gulong dynamic_code_alloc_count;
+static gulong dynamic_code_bytes_count;
+static gulong dynamic_code_frees_count;
 
 /*
  * AMD64 processors maintain icache coherency only for pages which are 
@@ -304,9 +304,9 @@ codechunk_cleanup (void)
 void
 mono_code_manager_init (void)
 {
-       mono_counters_register ("Dynamic code allocs", MONO_COUNTER_JIT | MONO_COUNTER_WORD, &dynamic_code_alloc_count);
-       mono_counters_register ("Dynamic code bytes", MONO_COUNTER_JIT | MONO_COUNTER_WORD, &dynamic_code_bytes_count);
-       mono_counters_register ("Dynamic code frees", MONO_COUNTER_JIT | MONO_COUNTER_WORD, &dynamic_code_frees_count);
+       mono_counters_register ("Dynamic code allocs", MONO_COUNTER_JIT | MONO_COUNTER_ULONG, &dynamic_code_alloc_count);
+       mono_counters_register ("Dynamic code bytes", MONO_COUNTER_JIT | MONO_COUNTER_ULONG, &dynamic_code_bytes_count);
+       mono_counters_register ("Dynamic code frees", MONO_COUNTER_JIT | MONO_COUNTER_ULONG, &dynamic_code_frees_count);
 }
 
 void