diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2016-01-14 20:45:58 +0100 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2016-01-14 23:27:15 +0100 |
commit | 0424e1a641f33a20a46067708b8c070de2f5aec3 (patch) | |
tree | 68a93773f7e3f8cef445c848e74ffaf5b599d830 /src/vm/frames.h | |
parent | c84ac790576e774bf7b72f28da8367ee35372c5a (diff) | |
download | coreclr-0424e1a641f33a20a46067708b8c070de2f5aec3.tar.gz coreclr-0424e1a641f33a20a46067708b8c070de2f5aec3.tar.bz2 coreclr-0424e1a641f33a20a46067708b8c070de2f5aec3.zip |
Improve stack limit checking precision
This change improves the precision of checking whether an address is in stack limits
for cases where ulimit -s is set to unlimited and the stack limit is checked for the
current thread. It uses current SP instead of the cached stack limit, since the OS
is free to move the stack limit up during the process runtime and the cached value
reflects the initial stack limit.
Diffstat (limited to 'src/vm/frames.h')
-rw-r--r-- | src/vm/frames.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/frames.h b/src/vm/frames.h index 1030bc2777..68ed9d6d9c 100644 --- a/src/vm/frames.h +++ b/src/vm/frames.h @@ -3837,7 +3837,7 @@ class FrameWithCookieHolder #endif // #ifndef DACCESS_COMPILE -#define ASSERT_ADDRESS_IN_STACK(address) _ASSERTE (GetThread () && GetThread ()->IsAddressInStack (address)); +#define ASSERT_ADDRESS_IN_STACK(address) _ASSERTE (Thread::IsAddressInCurrentStack (address)); #if defined (_DEBUG) && !defined (DACCESS_COMPILE) #define ASSUME_BYREF_FROM_JIT_STACK_BEGIN(__objRef) \ |