diff options
author | Alex Rønne Petersen <alexrp@xamarin.com> | 2016-08-17 08:01:25 +0300 |
---|---|---|
committer | Alex Rønne Petersen <alexrp@xamarin.com> | 2016-08-30 11:01:05 +0300 |
commit | 4f62b5af43856e1103b065493347e4ca4ecdabe7 (patch) | |
tree | 2fe76958cfece4d4b48d21007850e1b635dbfa38 /libgc | |
parent | 25edbd406fc83b4c62167eb303b0cf4916b3b5b8 (diff) |
[profiler] Acquire the exclusive buffer lock after the suspend lock.
This prevents possible STW deadlocks.
Diffstat (limited to 'libgc')
-rw-r--r-- | libgc/include/gc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgc/include/gc.h b/libgc/include/gc.h index e7929918ad0..7b1460a888a 100644 --- a/libgc/include/gc.h +++ b/libgc/include/gc.h @@ -93,6 +93,7 @@ GC_API GC_PTR (*GC_oom_fn) GC_PROTO((size_t bytes_requested)); /* pointer to a previously allocated heap */ /* object. */ +// Keep somewhat in sync with mono/metadata/profiler.h:enum MonoGCEvent typedef enum { GC_EVENT_START, GC_EVENT_MARK_START, |