[sockets] Fixed reading blocking flag
[mono.git] / mono / mini / mini-x86.h
index 08a0e4130a24c50bf30bb3a1e63b2e2127f87b6d..3063fc2cecae7bffbc927c5d7dba6198217ae0bc 100644 (file)
@@ -146,6 +146,11 @@ struct sigcontext {
 /*This is the max size of the locals area of a given frame. I think 1MB is a safe default for now*/
 #define MONO_ARCH_MAX_FRAME_SIZE 0x100000
 
+/*This is how much a try block must be extended when is is preceeded by a Monitor.Enter() call.
+It's 4 bytes as this is how many bytes + 1 that 'add 0x10, %esp' takes. It is used to pop the arguments from
+the monitor.enter call and must be already protected.*/
+#define MONO_ARCH_MONITOR_ENTER_ADJUSTMENT 4
+
 struct MonoLMF {
        /* 
         * If the lowest bit is set to 1, then this is a trampoline LMF frame.