summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDong-Heon Jung <clamp03@gmail.com>2019-07-17 12:09:40 +0900
committerGleb Balykov <g.balykov@samsung.com>2020-03-25 15:29:41 +0300
commit19513a34c6004d506effa223869555038159d6ec (patch)
treec674533734f06a4bde4c66204d17fc8db207d2bc /src
parent9ac48932809e5ed602206f144f404d5089f9d8f3 (diff)
downloadcoreclr-19513a34c6004d506effa223869555038159d6ec.tar.gz
coreclr-19513a34c6004d506effa223869555038159d6ec.tar.bz2
coreclr-19513a34c6004d506effa223869555038159d6ec.zip
Fix a build error when IBCLOGGER_ENABLED is not defined (#25691)
- Even if DACCESS_COMPILE or CROSSGEN_COMPILE is defined, coreclr can be built without IBCLOGGER_ENABLED definition.
Diffstat (limited to 'src')
-rw-r--r--src/vm/ibclogger.h44
1 files changed, 31 insertions, 13 deletions
diff --git a/src/vm/ibclogger.h b/src/vm/ibclogger.h
index 6aba2445e9..deed372ede 100644
--- a/src/vm/ibclogger.h
+++ b/src/vm/ibclogger.h
@@ -349,6 +349,7 @@ public:
typedef const void * pfnIBCAccessCallback;
+class ThreadLocalIBCInfo;
class IBCLoggingDisabler
{
public:
@@ -356,6 +357,10 @@ public:
{
}
+ IBCLoggingDisabler(ThreadLocalIBCInfo*)
+ {
+ }
+
~IBCLoggingDisabler()
{
}
@@ -371,6 +376,10 @@ public:
~ThreadLocalIBCInfo()
{
}
+
+ void FlushDelayedCallbacks()
+ {
+ }
};
class IBCLoggerAwareAllocMemTracker : public AllocMemTracker
@@ -595,23 +604,13 @@ public:
// Methods for enabling/disabling instrumentation.
void EnableAllInstr();
void DisableAllInstr();
-#else // IBCLOGGER_ENABLED
- void EnableAllInstr()
- {
- }
-
- void DisableAllInstr()
- {
- }
-#endif // IBCLOGGER_ENABLED
-#ifndef DACCESS_COMPILE
void DisableRidAccessOrderInstr();
void DisableMethodDescAccessInstr();
inline BOOL InstrEnabled()
{
- SUPPORTS_DAC;
+ SUPPORTS_DAC;
return (dwInstrEnabled != 0);
}
@@ -629,9 +628,28 @@ private:
private:
DWORD dwInstrEnabled;
-
+
static CrstStatic m_sync;
-#endif // DACCESS_COMPILE
+#else // IBCLOGGER_ENABLED
+ void EnableAllInstr()
+ {
+ }
+
+ void DisableAllInstr()
+ {
+ }
+
+ inline BOOL InstrEnabled()
+ {
+ return false;
+ }
+
+ static CrstStatic * GetSync()
+ {
+ _ASSERTE(false);
+ return NULL;
+ }
+#endif // IBCLOGGER_ENABLED
};
#endif // IBCLOGGER_H