summaryrefslogtreecommitdiff
path: root/src/vm/notifyexternals.cpp
diff options
context:
space:
mode:
authorSteve MacLean <stmaclea@microsoft.com>2019-05-08 16:08:29 -0400
committerGitHub <noreply@github.com>2019-05-08 16:08:29 -0400
commit883a27180106affebd45814f5b6fc236c9d7eab2 (patch)
treec06d84c9bea73effa8dc7a2c8748d42acbc7f577 /src/vm/notifyexternals.cpp
parentb7836c0b6e59f4e6bd6af984569f4ce8b3573f4e (diff)
downloadcoreclr-883a27180106affebd45814f5b6fc236c9d7eab2.tar.gz
coreclr-883a27180106affebd45814f5b6fc236c9d7eab2.tar.bz2
coreclr-883a27180106affebd45814f5b6fc236c9d7eab2.zip
Remove more MDA support code (#24457)
* Remove more MDA support code * PR Feedback
Diffstat (limited to 'src/vm/notifyexternals.cpp')
-rw-r--r--src/vm/notifyexternals.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/vm/notifyexternals.cpp b/src/vm/notifyexternals.cpp
index b6e7fbb8ac..2fa2f11e22 100644
--- a/src/vm/notifyexternals.cpp
+++ b/src/vm/notifyexternals.cpp
@@ -15,11 +15,10 @@
#include "comcache.h"
#include "notifyexternals.h"
-#include "mdaassistants.h"
// On some platforms, we can detect whether the current thread holds the loader
// lock. It is unsafe to execute managed code when this is the case
-BOOL ShouldCheckLoaderLock(BOOL fForMDA /*= TRUE*/)
+BOOL ShouldCheckLoaderLock()
{
CONTRACTL
{
@@ -37,24 +36,13 @@ BOOL ShouldCheckLoaderLock(BOOL fForMDA /*= TRUE*/)
// 0 here. Any explicit initialization will result in thread-safety problems.
static BOOL fInited;
static BOOL fShouldCheck;
- static BOOL fShouldCheck_ForMDA;
if (VolatileLoad(&fInited) == FALSE)
{
- fShouldCheck_ForMDA = FALSE;
-
fShouldCheck = AuxUlibInitialize(); // may fail
-#ifdef MDA_SUPPORTED
- if (fShouldCheck)
- {
- MdaLoaderLock* pProbe = MDA_GET_ASSISTANT(LoaderLock);
- if (pProbe)
- fShouldCheck_ForMDA = TRUE;
- }
-#endif // MDA_SUPPORTED
VolatileStore(&fInited, TRUE);
}
- return (fForMDA ? fShouldCheck_ForMDA : fShouldCheck);
+ return (fShouldCheck);
#endif // FEATURE_CORESYSTEM
}