php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
sljitWXExecAllocatorPosix.c File Reference
#include <sys/types.h>
#include <sys/mman.h>
#include <pthread.h>

Go to the source code of this file.

Macros

#define SLJIT_UPDATE_WX_FLAGS(from, to, enable_exec)
 
#define SLJIT_SE_LOCK()
 
#define SLJIT_SE_UNLOCK()
 
#define SLJIT_WX_IS_BLOCK(ptr, 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

◆ SLJIT_SE_LOCK

#define SLJIT_SE_LOCK ( )
Value:
pthread_mutex_lock(&se_lock)

Definition at line 61 of file sljitWXExecAllocatorPosix.c.

◆ SLJIT_SE_UNLOCK

#define SLJIT_SE_UNLOCK ( )
Value:
pthread_mutex_unlock(&se_lock)

Definition at line 62 of file sljitWXExecAllocatorPosix.c.

◆ SLJIT_UPDATE_WX_FLAGS

#define SLJIT_UPDATE_WX_FLAGS ( from,
to,
enable_exec )
Value:
sljit_update_wx_flags((from), (to), (enable_exec))

Definition at line 56 of file sljitWXExecAllocatorPosix.c.

◆ SLJIT_WX_IS_BLOCK

#define SLJIT_WX_IS_BLOCK ( ptr,
size )
Value:
generic_check_is_wx_block(ptr, size)
new_type size
Definition ffi.c:4365
void * ptr
Definition ffi.c:3814

Definition at line 68 of file sljitWXExecAllocatorPosix.c.

Function Documentation

◆ sljit_free_exec()

SLJIT_API_FUNC_ATTRIBUTE void sljit_free_exec ( void * ptr)

Definition at line 117 of file sljitWXExecAllocatorPosix.c.

◆ sljit_free_unused_memory_exec()

SLJIT_API_FUNC_ATTRIBUTE void sljit_free_unused_memory_exec ( void )

Definition at line 138 of file sljitWXExecAllocatorPosix.c.

◆ sljit_malloc_exec()

SLJIT_API_FUNC_ATTRIBUTE void * sljit_malloc_exec ( sljit_uw size)

Definition at line 78 of file sljitWXExecAllocatorPosix.c.