projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf43585
)
Remove LOCK_DECLARE and LOCK_INIT -- unused and incorrect comments (not idempotent...
author
monojenkins
<jo.shields+jenkins@xamarin.com>
Thu, 20 Feb 2020 09:51:40 +0000
(
04:51
-0500)
committer
GitHub
<noreply@github.com>
Thu, 20 Feb 2020 09:51:40 +0000
(10:51 +0100)
Co-authored-by: Jay Krell <jay.krell@cornell.edu>
src/mono/mono/sgen/sgen-gc.h
patch
|
blob
|
history
diff --git
a/src/mono/mono/sgen/sgen-gc.h
b/src/mono/mono/sgen/sgen-gc.h
index
2bf2929
..
2478a0b
100644
(file)
--- 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)