summaryrefslogtreecommitdiff
path: root/src/jit/inlinepolicy.h
diff options
context:
space:
mode:
authorAndy Ayers <andya@microsoft.com>2016-05-19 10:39:25 -0700
committerAndy Ayers <andya@microsoft.com>2016-05-20 16:16:56 -0700
commit27484e2c82d8b3b98322e1d758b9caf312231c9c (patch)
tree77f4c24bbee1de05a7ef1d6893f1f366b6da7fe5 /src/jit/inlinepolicy.h
parentce3ff76234bf199b4498a5d31f05af6eb43073f6 (diff)
downloadcoreclr-27484e2c82d8b3b98322e1d758b9caf312231c9c.tar.gz
coreclr-27484e2c82d8b3b98322e1d758b9caf312231c9c.tar.bz2
coreclr-27484e2c82d8b3b98322e1d758b9caf312231c9c.zip
Inliner: locks for xml read/write access
Move CritSecObject into util.h, and use it to lock around reading and writing inline Xml. Introduce CritSecHolder for RAII management of the locks. Add a simple file position cache for methods to speed up replay when the inline xml file is large.
Diffstat (limited to 'src/jit/inlinepolicy.h')
-rw-r--r--src/jit/inlinepolicy.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/jit/inlinepolicy.h b/src/jit/inlinepolicy.h
index f8bb34a845..21bcf51193 100644
--- a/src/jit/inlinepolicy.h
+++ b/src/jit/inlinepolicy.h
@@ -363,9 +363,10 @@ private:
bool FindInline(CORINFO_METHOD_HANDLE callee);
bool FindInline(unsigned token, unsigned hash);
- static bool s_WroteReplayBanner;
- static FILE* s_ReplayFile;
- InlineContext* m_InlineContext;
+ static bool s_WroteReplayBanner;
+ static FILE* s_ReplayFile;
+ static CritSecObject s_XmlReaderLock;
+ InlineContext* m_InlineContext;
};
#endif // defined(DEBUG) || defined(INLINE_DATA)