summaryrefslogtreecommitdiff
path: root/src/vm/codeman.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/codeman.h')
-rw-r--r--src/vm/codeman.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/vm/codeman.h b/src/vm/codeman.h
index cca5f5e2d2..f85eeb59db 100644
--- a/src/vm/codeman.h
+++ b/src/vm/codeman.h
@@ -91,10 +91,8 @@ typedef struct
} EH_CLAUSE_ENUMERATOR;
class EECodeInfo;
-#define PAGE_MASK (PAGE_SIZE-1)
-#define PAGE_ALIGN ~(PAGE_MASK)
-#define ROUND_DOWN_TO_PAGE(x) ( (size_t) (x) & PAGE_ALIGN)
-#define ROUND_UP_TO_PAGE(x) (((size_t) (x) + PAGE_MASK) & PAGE_ALIGN)
+#define ROUND_DOWN_TO_PAGE(x) ( (size_t) (x) & ~((size_t)GetOsPageSize()-1))
+#define ROUND_UP_TO_PAGE(x) (((size_t) (x) + (GetOsPageSize()-1)) & ~((size_t)GetOsPageSize()-1))
enum StubCodeBlockKind : int
{
@@ -463,7 +461,7 @@ typedef struct _HeapList
TADDR startAddress;
TADDR endAddress; // the current end of the used portion of the Heap
- TADDR mapBase; // "startAddress" rounded down to PAGE_SIZE. pHdrMap is relative to this address
+ TADDR mapBase; // "startAddress" rounded down to GetOsPageSize(). pHdrMap is relative to this address
PTR_DWORD pHdrMap; // bit array used to find the start of methods
size_t maxCodeHeapSize;// Size of the entire contiguous block of memory