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:
f36d42c
)
Fix contract to allow call into GarbageCollect() to throw (dotnet/coreclr#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.
Commit migrated from https://github.com/dotnet/coreclr/commit/
ee4ed1ac502f037e9894006ecc8da63f97325694
src/coreclr/src/vm/threads.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/src/vm/threads.cpp
b/src/coreclr/src/vm/threads.cpp
index
50e95e4
..
9af5aa4
100644
(file)
--- a/
src/coreclr/src/vm/threads.cpp
+++ b/
src/coreclr/src/vm/threads.cpp
@@
-6077,7
+6077,7
@@
bool ThreadStore::ShouldTriggerGCForDeadThreads()
void ThreadStore::TriggerGCForDeadThreadsIfNecessary()
{
CONTRACTL {
-
NOTHROW
;
+
THROWS
;
GC_TRIGGERS;
}
CONTRACTL_END;