sgen: Don't report all pinned roots as stack roots.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Sat, 17 Dec 2011 01:56:17 +0000 (02:56 +0100)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 20 Dec 2011 01:28:18 +0000 (02:28 +0100)
mono/metadata/sgen-gc.c

index 8d423e0ec8016893017fe169aecbc2754e7060bc..5c284fc32dce82ad795240cfee7389e15cc51eb4 100644 (file)
@@ -1795,7 +1795,7 @@ pin_objects_from_addresses (GCMemSection *section, void **start, void **end, voi
                GCRootReport report;
                report.count = 0;
                for (idx = 0; idx < count; ++idx)
-                       add_profile_gc_root (&report, definitely_pinned [idx], MONO_PROFILE_GC_ROOT_PINNING, 0);
+                       add_profile_gc_root (&report, definitely_pinned [idx], MONO_PROFILE_GC_ROOT_PINNING | MONO_PROFILE_GC_ROOT_MISC, 0);
                notify_gc_roots (&report);
        }
        stat_pinned_objects += count;