[profile] Fix a regression from last commit.
authorRodrigo Kumpera <kumpera@gmail.com>
Wed, 20 Apr 2016 15:21:28 +0000 (08:21 -0700)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 20 Apr 2016 15:21:37 +0000 (08:21 -0700)
mono/profiler/proflog.c

index 60cd375b66f72d8727c0efc16a6cfdd67b5897c3..23605903f4350f01b1a6c982b077a56648aae204 100644 (file)
@@ -2090,6 +2090,7 @@ mono_sample_hit (MonoProfiler *profiler, unsigned char *ip, void *context)
 
                sample = mono_lock_free_alloc (&profiler->sample_allocator);
                sample->prof = profiler;
+               mono_lock_free_queue_node_init (&sample->node, TRUE);
 
                InterlockedIncrement (&sample_allocations);
        }