Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / profiler / mprof-report.c
index 1c63e9abde7fda14b8887b2e29a2ba9ba8c1a037..bc9971ad2320defc5c285f651207d8520d236c74 100644 (file)
@@ -906,6 +906,13 @@ enum {
        SAMPLE_BRANCH_MISSES,
 };
 
+enum {
+       MONO_GC_EVENT_MARK_START = 1,
+       MONO_GC_EVENT_MARK_END = 2,
+       MONO_GC_EVENT_RECLAIM_START = 3,
+       MONO_GC_EVENT_RECLAIM_END = 4,
+};
+
 static const char*
 sample_type_name (int type)
 {
@@ -2696,7 +2703,7 @@ decode_buffer (ProfContext *ctx)
                                for (i = 0; i < num; ++i) {
                                        intptr_t objdiff = decode_sleb128 (p, &p);
                                        int root_type;
-                                       if (ctx->data_version > 12)
+                                       if (ctx->data_version == 13)
                                                root_type = *p++;
                                        else
                                                root_type = decode_uleb128 (p, &p);