#include <mono/utils/mono-counters.h>
#include <mono/utils/dtrace.h>
#include <mono/utils/mono-threads.h>
+#include <mono/utils/atomic.h>
#ifndef HOST_WIN32
#include <pthread.h>
HANDLE done_event;
MonoInternalThread *thread = mono_thread_internal_current ();
+#if defined(__native_client__)
+ return FALSE;
+#endif
+
if (mono_thread_internal_current () == gc_thread)
/* We are called from inside a finalizer, not much we can do here */
return FALSE;
MONO_GC_REGISTER_ROOT_FIXED (gc_handles [HANDLE_NORMAL].entries);
MONO_GC_REGISTER_ROOT_FIXED (gc_handles [HANDLE_PINNED].entries);
+ mono_counters_register ("Created object count", MONO_COUNTER_GC | MONO_COUNTER_ULONG, &mono_stats.new_object_count);
mono_counters_register ("Minor GC collections", MONO_COUNTER_GC | MONO_COUNTER_INT, &gc_stats.minor_gc_count);
mono_counters_register ("Major GC collections", MONO_COUNTER_GC | MONO_COUNTER_INT, &gc_stats.major_gc_count);
mono_counters_register ("Minor GC time", MONO_COUNTER_GC | MONO_COUNTER_TIME_INTERVAL, &gc_stats.minor_gc_time_usecs);
word_bytes = (size_t)align_down (size);
switch (word_bytes) {
case sizeof (void*) * 1:
- BZERO_WORDS (dest, 1);
+ BZERO_WORDS (d, 1);
break;
case sizeof (void*) * 2:
- BZERO_WORDS (dest, 2);
+ BZERO_WORDS (d, 2);
break;
case sizeof (void*) * 3:
- BZERO_WORDS (dest, 3);
+ BZERO_WORDS (d, 3);
break;
case sizeof (void*) * 4:
- BZERO_WORDS (dest, 4);
+ BZERO_WORDS (d, 4);
break;
default:
memset (d, 0, word_bytes);