summaryrefslogtreecommitdiff
path: root/src/jit/codegenlegacy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jit/codegenlegacy.cpp')
-rw-r--r--src/jit/codegenlegacy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/codegenlegacy.cpp b/src/jit/codegenlegacy.cpp
index 3997d07bcb..4b4b0a334b 100644
--- a/src/jit/codegenlegacy.cpp
+++ b/src/jit/codegenlegacy.cpp
@@ -20407,7 +20407,7 @@ regNumber CodeGen::genLclHeap(GenTreePtr size)
test ESP, [ESP+0] // X86 - tickle the page
ldr REGH,[ESP+0] // ARM - tickle the page
mov REGH, ESP
- sub REGH, PAGE_SIZE
+ sub REGH, GetOsPageSize()
mov ESP, REGH
cmp ESP, REG
jae loop