diff options
author | Steve MacLean <sdmaclea.qdt@qualcommdatacenter.com> | 2017-06-12 17:14:12 -0400 |
---|---|---|
committer | Maoni Stephens <Maoni0@users.noreply.github.com> | 2017-06-12 14:14:12 -0700 |
commit | 0ee3b5e64a98dc71aefed2304fe4bcf7f66ca9f5 (patch) | |
tree | 8f099e2391d8990de1c7d0f4ca4c3fcae6839e4d /src/vm/codeman.h | |
parent | c655981474be1d3aa0165408e5c3914c5cfc35a1 (diff) | |
download | coreclr-0ee3b5e64a98dc71aefed2304fe4bcf7f66ca9f5.tar.gz coreclr-0ee3b5e64a98dc71aefed2304fe4bcf7f66ca9f5.tar.bz2 coreclr-0ee3b5e64a98dc71aefed2304fe4bcf7f66ca9f5.zip |
[Arm64/Unix] Add 64K page support (#10981)
* [Arm64/Unix] Support 64K pages
* GC move GCToOSInterface::Initialize() into InitializeGarbageCollector()
Diffstat (limited to 'src/vm/codeman.h')
-rw-r--r-- | src/vm/codeman.h | 8 |
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 |