From: monojenkins Date: Thu, 20 Feb 2020 09:51:40 +0000 (-0500) Subject: Remove LOCK_DECLARE and LOCK_INIT -- unused and incorrect comments (not idempotent... X-Git-Tag: submit/tizen/20210909.063632~9603 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5e24b2fe724f8a4c5bc334e0f61124fe8f751bd;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Remove LOCK_DECLARE and LOCK_INIT -- unused and incorrect comments (not idempotent). (#32572) Co-authored-by: Jay Krell --- diff --git a/src/mono/mono/sgen/sgen-gc.h b/src/mono/mono/sgen/sgen-gc.h index 2bf2929..2478a0b 100644 --- a/src/mono/mono/sgen/sgen-gc.h +++ b/src/mono/mono/sgen/sgen-gc.h @@ -76,10 +76,6 @@ struct _GCMemSection { /* * Recursion is not allowed for the thread lock. */ -#define LOCK_DECLARE(name) mono_mutex_t name -/* if changing LOCK_INIT to something that isn't idempotent, look at - its use in mono_gc_base_init in sgen-gc.c */ -#define LOCK_INIT(name) mono_os_mutex_init (&(name)) #define LOCK_GC do { sgen_gc_lock (); } while (0) #define UNLOCK_GC do { sgen_gc_unlock (); } while (0)