projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ed4abc
)
Fix contract to allow call into GarbageCollect() to throw (#10856)
author
Koundinya Veluri
<kouvel@microsoft.com>
Mon, 10 Apr 2017 20:00:48 +0000
(13:00 -0700)
committer
GitHub
<noreply@github.com>
Mon, 10 Apr 2017 20:00:48 +0000
(13:00 -0700)
I did not intend to mark this function as NOTHROW, and there is no reason to expect NOTHROW here. Other functions that call into GarbageCollect() allow THROWS.
src/vm/threads.cpp
patch
|
blob
|
history
diff --git
a/src/vm/threads.cpp
b/src/vm/threads.cpp
index
50e95e4
..
9af5aa4
100644
(file)
--- a/
src/vm/threads.cpp
+++ b/
src/vm/threads.cpp
@@
-6077,7
+6077,7
@@
bool ThreadStore::ShouldTriggerGCForDeadThreads()
void ThreadStore::TriggerGCForDeadThreadsIfNecessary()
{
CONTRACTL {
-
NOTHROW
;
+
THROWS
;
GC_TRIGGERS;
}
CONTRACTL_END;