From 63cca210fa9bbad8846a59dd61ada47c3b3d45cf Mon Sep 17 00:00:00 2001 From: Egor Chesakov Date: Fri, 20 Nov 2020 18:46:33 -0800 Subject: [PATCH] Always return 0x1000 in eeGetPageSize() in src/coreclr/src/jit/compiler.h --- src/coreclr/src/jit/compiler.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/coreclr/src/jit/compiler.h b/src/coreclr/src/jit/compiler.h index d8de6c9afa075b..87782d5bea0590 100644 --- a/src/coreclr/src/jit/compiler.h +++ b/src/coreclr/src/jit/compiler.h @@ -7419,10 +7419,13 @@ class Compiler GenTree* eeGetPInvokeCookie(CORINFO_SIG_INFO* szMetaSig); - // Returns the page size for the target machine as reported by the EE. + // The following value is used by the JIT to determine when + // to emit a stack probing instruction sequence or a call to the stack probe helper while: + // 1. allocating a frame in a method prolog; + // 2. allocating a local heap in a method body (i.e. localloc). target_size_t eeGetPageSize() { - return (target_size_t)eeGetEEInfo()->osPageSize; + return 0x1000; } // Returns the frame size at which we will generate a loop to probe the stack.