Home
last modified time | relevance | path

Searched refs:OS_PAGE_SIZE (Results 1 – 14 of 14) sorted by relevance

/dports/lang/mono/mono-5.10.1.57/external/corert/src/Native/Runtime/
H A DThunksMapping.cpp25 #define THUNK_SIZE (2 * OS_PAGE_SIZE) // This will cause RhpGetNumThunksPerBlock to return 0
58 …static_assert((THUNKS_MAP_SIZE % OS_PAGE_SIZE) == 0, "Thunks map size should be in multiples of pa…
60 return THUNKS_MAP_SIZE / OS_PAGE_SIZE;
66OS_PAGE_SIZE / THUNK_SIZE, // Number of thunks that can fit in a page
78 return (void*)(((UIntNative)pThunkStubAddress & ~(OS_PAGE_SIZE - 1)) + THUNKS_MAP_SIZE);
83 return (void*)(((UIntNative)pThunkDataAddress & ~(OS_PAGE_SIZE - 1)) - THUNKS_MAP_SIZE);
88 return OS_PAGE_SIZE;
128 UInt8* pDataBlockAddress = (UInt8*)pDataSection + m * OS_PAGE_SIZE; in RhAllocateThunksMapping()
129 UInt8* pThunkBlockAddress = (UInt8*)pThunksSection + m * OS_PAGE_SIZE; in RhAllocateThunksMapping()
148 *((UInt32*)pCurrentThunkAddress) = OS_PAGE_SIZE - POINTER_SIZE - (i * POINTER_SIZE * 2); in RhAllocateThunksMapping()
[all …]
H A DCommonMacros.h134 #define OS_PAGE_SIZE 0x1000 macro
139 #ifndef OS_PAGE_SIZE
140 #define OS_PAGE_SIZE 0x1000 macro
146 #ifndef OS_PAGE_SIZE
147 #define OS_PAGE_SIZE 0x1000 macro
153 #ifndef OS_PAGE_SIZE
154 #define OS_PAGE_SIZE 0x1000 macro
160 #ifndef OS_PAGE_SIZE
161 #define OS_PAGE_SIZE 0x4 macro
H A Dallocheap.cpp141 ASSERT(alignment <= OS_PAGE_SIZE); // Can't handle this right now. in _Alloc()
224 ASSERT(ALIGN_DOWN(pFreeCommitEnd, OS_PAGE_SIZE) == pFreeCommitEnd); in _UpdateMemPtrs()
225 ASSERT(ALIGN_DOWN(pFreeReserveEnd, OS_PAGE_SIZE) == pFreeReserveEnd); in _UpdateMemPtrs()
238 if (ALIGN_DOWN(m_pNextFree, OS_PAGE_SIZE) != ALIGN_DOWN(pNextFree, OS_PAGE_SIZE) || in _UpdateMemPtrs()
242 if (!_AcquireWriteAccess(ALIGN_DOWN(pNextFree, OS_PAGE_SIZE), in _UpdateMemPtrs()
243 OS_PAGE_SIZE, in _UpdateMemPtrs()
280 cbMem = ALIGN_UP(max(cbMem, s_minBlockSize), OS_PAGE_SIZE);; in _AllocNewBlock()
340 UIntNative cbMemToCommit = ALIGN_UP(cbMem, OS_PAGE_SIZE); in _CommitFromCurBlock()
H A DRange.h123 UInt8 *pCurPage = ALIGN_DOWN(GetStart(), OS_PAGE_SIZE); in GetPageCount()
124 UInt8 *pEndPage = ALIGN_UP(GetEnd(), OS_PAGE_SIZE); in GetPageCount()
125 return (pEndPage - pCurPage) / OS_PAGE_SIZE; in GetPageCount()
129 { return ALIGN_DOWN(GetStart(), OS_PAGE_SIZE); } in GetStartPage()
133 { return ALIGN_UP(GetEnd(), OS_PAGE_SIZE); } in GetEndPage()
H A Dallocheap.h78 static const UIntNative s_minBlockSize = OS_PAGE_SIZE;
/dports/lang/mono/mono-5.10.1.57/external/corert/src/Native/gc/unix/
H A Dgcenv.unix.cpp76 static uint8_t g_helperPage[OS_PAGE_SIZE] __attribute__((aligned(OS_PAGE_SIZE)));
96 assert((((size_t)g_helperPage) & (OS_PAGE_SIZE - 1)) == 0); in Initialize()
101 int status = mlock(g_helperPage, OS_PAGE_SIZE); in Initialize()
111 munlock(g_helperPage, OS_PAGE_SIZE); in Initialize()
121 int ret = munlock(g_helperPage, OS_PAGE_SIZE); in Shutdown()
191 status = mprotect(g_helperPage, OS_PAGE_SIZE, PROT_READ | PROT_WRITE); in FlushProcessWriteBuffers()
198 status = mprotect(g_helperPage, OS_PAGE_SIZE, PROT_NONE); in FlushProcessWriteBuffers()
272 alignment = OS_PAGE_SIZE; in VirtualReserve()
275 size_t alignedSize = size + (alignment - OS_PAGE_SIZE); in VirtualReserve()
/dports/lang/mono/mono-5.10.1.57/external/corert/src/Native/gc/
H A Dsoftwarewritewatch.cpp13 …t<size_t>(1) << SOFTWARE_WRITE_WATCH_AddressToTableByteIndexShift) == OS_PAGE_SIZE, "Unexpected OS…
98 void *pageAddress = firstPageAddressInBlock + byteIndex * OS_PAGE_SIZE; in GetDirtyFromBlock()
187 firstPageAddressInCurrentBlock += sizeof(size_t) * OS_PAGE_SIZE; in GetDirty()
205 firstPageAddressInCurrentBlock += sizeof(size_t) * OS_PAGE_SIZE; in GetDirty()
H A Dsoftwarewritewatch.h252 assert(ALIGN_DOWN(pageAddress, OS_PAGE_SIZE) == pageAddress); in GetPageAddress()
H A Dgc.cpp1951 #define MAX_STRUCTALIGN OS_PAGE_SIZE
2061 #define SEGMENT_INITIAL_COMMIT (2*OS_PAGE_SIZE)
2063 #define SEGMENT_INITIAL_COMMIT (OS_PAGE_SIZE)
2114 #define page_size OS_PAGE_SIZE
9092 start = new_pages + OS_PAGE_SIZE; in make_heap_segment()
9196 if (size >= max ((extra_space + 2*OS_PAGE_SIZE), 100*OS_PAGE_SIZE)) in decommit_heap_segment_pages()
9222 page_start += OS_PAGE_SIZE; in decommit_heap_segment()
10765 c_size = max (c_size, 16*OS_PAGE_SIZE); in grow_heap_segment()
18709 … card_of (g_addresses [i]+OS_PAGE_SIZE), (size_t)g_addresses [i]+OS_PAGE_SIZE)); in fix_card_table()
21845 (ps > (OS_PAGE_SIZE)))
[all …]
H A Dgcpriv.h4333 #define card_size ((size_t)(2*OS_PAGE_SIZE/card_word_width))
4335 #define card_size ((size_t)(OS_PAGE_SIZE/card_word_width))
/dports/lang/mono/mono-5.10.1.57/external/corert/src/Native/Runtime/unix/
H A DPalRedhawkUnix.cpp163 static uint8_t g_helperPage[OS_PAGE_SIZE] __attribute__((aligned(OS_PAGE_SIZE)));
916 ASSERT(((size_t)pAddress & (OS_PAGE_SIZE - 1)) == 0); in _Post_writable_byte_size_()
919 size = (size + (OS_PAGE_SIZE - 1)) & ~(OS_PAGE_SIZE - 1); in _Post_writable_byte_size_()
927 size_t alignedSize = size + (Alignment - OS_PAGE_SIZE); in _Post_writable_byte_size_()
1297 ASSERT((((size_t)g_helperPage) & (OS_PAGE_SIZE - 1)) == 0); in InitializeFlushProcessWriteBuffers()
1302 int status = mlock(g_helperPage, OS_PAGE_SIZE); in InitializeFlushProcessWriteBuffers()
1312 munlock(g_helperPage, OS_PAGE_SIZE); in InitializeFlushProcessWriteBuffers()
1326 status = mprotect(g_helperPage, OS_PAGE_SIZE, PROT_READ | PROT_WRITE); in FlushProcessWriteBuffers()
1333 status = mprotect(g_helperPage, OS_PAGE_SIZE, PROT_NONE); in FlushProcessWriteBuffers()
1497 alignment = OS_PAGE_SIZE; in VirtualReserve()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corert/src/Native/gc/windows/
H A Dgcenv.windows.cpp368 assert(granularity == OS_PAGE_SIZE); in GetWriteWatch()
/dports/lang/mono/mono-5.10.1.57/external/corert/src/Native/gc/env/
H A Dgcenv.base.h302 #define OS_PAGE_SIZE 4096 macro
/dports/lang/mono/mono-5.10.1.57/external/corert/src/Native/Runtime/windows/
H A DPalRedhawkMinWin.cpp1594 _ASSERTE (granularity == OS_PAGE_SIZE); in GetWriteWatch()