diff options
Diffstat (limited to 'src/vm/util.hpp')
-rw-r--r-- | src/vm/util.hpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/vm/util.hpp b/src/vm/util.hpp index 1f86d6c2d5..edfd9161e4 100644 --- a/src/vm/util.hpp +++ b/src/vm/util.hpp @@ -44,6 +44,13 @@ #define UtilMessageBoxNonLocalizedVA __error("Use one of the EEMessageBox APIs (defined in eemessagebox.h) from inside the EE") #define WszMessageBox __error("Use one of the EEMessageBox APIs (defined in eemessagebox.h) from inside the EE") +// Hot cache lines need to be aligned to cache line size to improve performance +#if defined(ARM64) +#define MAX_CACHE_LINE_SIZE 128 +#else +#define MAX_CACHE_LINE_SIZE 64 +#endif + //======================================================================== // More convenient names for integer types of a guaranteed size. //======================================================================== @@ -1064,7 +1071,7 @@ public: MODULE_LOAD_NOTIFICATION=1, MODULE_UNLOAD_NOTIFICATION=2, JIT_NOTIFICATION=3, - JIT_DISCARD_NOTIFICATION=4, + JIT_PITCHING_NOTIFICATION=4, EXCEPTION_NOTIFICATION=5, GC_NOTIFICATION= 6, CATCH_ENTER_NOTIFICATION = 7, @@ -1072,7 +1079,7 @@ public: // called from the runtime static void DoJITNotification(MethodDesc *MethodDescPtr); - static void DoJITDiscardNotification(MethodDesc *MethodDescPtr); + static void DoJITPitchingNotification(MethodDesc *MethodDescPtr); static void DoModuleLoadNotification(Module *Module); static void DoModuleUnloadNotification(Module *Module); static void DoExceptionNotification(class Thread* ThreadPtr); @@ -1082,7 +1089,7 @@ public: // called from the DAC static int GetType(TADDR Args[]); static BOOL ParseJITNotification(TADDR Args[], TADDR& MethodDescPtr); - static BOOL ParseJITDiscardNotification(TADDR Args[], TADDR& MethodDescPtr); + static BOOL ParseJITPitchingNotification(TADDR Args[], TADDR& MethodDescPtr); static BOOL ParseModuleLoadNotification(TADDR Args[], TADDR& ModulePtr); static BOOL ParseModuleUnloadNotification(TADDR Args[], TADDR& ModulePtr); static BOOL ParseExceptionNotification(TADDR Args[], TADDR& ThreadPtr); |