fix
This commit is contained in:
parent
719b32d71f
commit
fef70c0386
@ -1134,10 +1134,11 @@ int AMXAPI amx_InitJIT(AMX *amx, void *reloc_table, void *native_code)
|
|||||||
int mac, res;
|
int mac, res;
|
||||||
AMX_HEADER *hdr;
|
AMX_HEADER *hdr;
|
||||||
|
|
||||||
mac = memoryFullAccess( (void *)((int)((void*)asm_runJIT)-(int)((void*)asm_runJIT)%sysconf(_SC_PAGESIZE)), 20000 );
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
mac = memoryFullAccess( (void *)((int)((void*)asm_runJIT)-(int)((void*)asm_runJIT)%sysconf(_SC_PAGESIZE)), 20000 );
|
||||||
if ( mac )
|
if ( mac )
|
||||||
#else
|
#else
|
||||||
|
mac = memoryFullAccess((void *)asm_runJIT, 20000);
|
||||||
if ( !mac )
|
if ( !mac )
|
||||||
#endif
|
#endif
|
||||||
return AMX_ERR_INIT_JIT;
|
return AMX_ERR_INIT_JIT;
|
||||||
|
Loading…
Reference in New Issue
Block a user