Inliner: locks for xml read/write access
authorAndy Ayers <andya@microsoft.com>
Thu, 19 May 2016 17:39:25 +0000 (10:39 -0700)
committerAndy Ayers <andya@microsoft.com>
Fri, 20 May 2016 23:16:56 +0000 (16:16 -0700)
commit27484e2c82d8b3b98322e1d758b9caf312231c9c
tree77f4c24bbee1de05a7ef1d6893f1f366b6da7fe5
parentce3ff76234bf199b4498a5d31f05af6eb43073f6
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.
src/jit/compiler.cpp
src/jit/compiler.h
src/jit/inline.cpp
src/jit/inline.h
src/jit/inlinepolicy.cpp
src/jit/inlinepolicy.h
src/jit/utils.h