php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
sljitExecAllocatorCore.c File Reference

Go to the source code of this file.

Data Structures

struct  block_header
 
struct  free_block
 

Macros

#define CHUNK_HEADER_SIZE   0
 
#define SLJIT_UPDATE_WX_FLAGS(from, to, enable_exec)
 
#define CHUNK_SIZE   (sljit_uw)0x10000
 
#define AS_BLOCK_HEADER(base, offset)
 
#define AS_FREE_BLOCK(base, offset)
 
#define MEM_START(base)
 
#define CHUNK_MASK   (~(CHUNK_SIZE - 1))
 
#define ALIGN_SIZE(size)
 
#define CHUNK_EXTRA_SIZE   (sizeof(struct block_header) + CHUNK_HEADER_SIZE)
 

Functions

SLJIT_API_FUNC_ATTRIBUTE voidsljit_malloc_exec (sljit_uw size)
 
SLJIT_API_FUNC_ATTRIBUTE void sljit_free_exec (void *ptr)
 
SLJIT_API_FUNC_ATTRIBUTE void sljit_free_unused_memory_exec (void)
 

Macro Definition Documentation

◆ ALIGN_SIZE

#define ALIGN_SIZE ( size)
Value:
(((size) + sizeof(struct block_header) + 7u) & ~(sljit_uw)7)
uint32_t u
Definition cdf.c:78
new_type size
Definition ffi.c:4365
unsigned int sljit_uw

Definition at line 115 of file sljitExecAllocatorCore.c.

◆ AS_BLOCK_HEADER

#define AS_BLOCK_HEADER ( base,
offset )
Value:
((struct block_header*)(((sljit_u8*)base) + offset))
zend_long offset
unsigned char sljit_u8

Definition at line 109 of file sljitExecAllocatorCore.c.

◆ AS_FREE_BLOCK

#define AS_FREE_BLOCK ( base,
offset )
Value:

Definition at line 111 of file sljitExecAllocatorCore.c.

◆ CHUNK_EXTRA_SIZE

#define CHUNK_EXTRA_SIZE   (sizeof(struct block_header) + CHUNK_HEADER_SIZE)

Definition at line 116 of file sljitExecAllocatorCore.c.

◆ CHUNK_HEADER_SIZE

#define CHUNK_HEADER_SIZE   0

Definition at line 82 of file sljitExecAllocatorCore.c.

◆ CHUNK_MASK

#define CHUNK_MASK   (~(CHUNK_SIZE - 1))

Definition at line 114 of file sljitExecAllocatorCore.c.

◆ CHUNK_SIZE

#define CHUNK_SIZE   (sljit_uw)0x10000

Definition at line 91 of file sljitExecAllocatorCore.c.

◆ MEM_START

#define MEM_START ( base)
Value:
((void*)((base) + 1))

Definition at line 113 of file sljitExecAllocatorCore.c.

◆ SLJIT_UPDATE_WX_FLAGS

#define SLJIT_UPDATE_WX_FLAGS ( from,
to,
enable_exec )

Definition at line 86 of file sljitExecAllocatorCore.c.

Function Documentation

◆ sljit_free_exec()

SLJIT_API_FUNC_ATTRIBUTE void sljit_free_exec ( void * ptr)

Definition at line 247 of file sljitExecAllocatorCore.c.

◆ sljit_free_unused_memory_exec()

SLJIT_API_FUNC_ATTRIBUTE void sljit_free_unused_memory_exec ( void )

Definition at line 297 of file sljitExecAllocatorCore.c.

◆ sljit_malloc_exec()

SLJIT_API_FUNC_ATTRIBUTE void * sljit_malloc_exec ( sljit_uw size)

Definition at line 147 of file sljitExecAllocatorCore.c.