summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDong-Heon Jung <clamp03@gmail.com>2019-07-17 03:09:40 (GMT)
committerGleb Balykov <g.balykov@samsung.com>2020-03-25 12:29:41 (GMT)
commit19513a34c6004d506effa223869555038159d6ec (patch)
treec674533734f06a4bde4c66204d17fc8db207d2bc /src
parent9ac48932809e5ed602206f144f404d5089f9d8f3 (diff)
downloadcoreclr-19513a34c6004d506effa223869555038159d6ec.zip
coreclr-19513a34c6004d506effa223869555038159d6ec.tar.gz
coreclr-19513a34c6004d506effa223869555038159d6ec.tar.bz2
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 6aba244..deed372 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