Browse Source

Cosmetic changes

pull/18/head
Aleksey Demakov 5 years ago
parent
commit
7f7439dc04
  1. 3
      jit/jit-memory-cache.c
  2. 3
      jit/jit-vmem.c

3
jit/jit-memory-cache.c

@ -528,7 +528,6 @@ _jit_cache_start_function(jit_cache_t cache, jit_function_t func)
{
return JIT_MEMORY_ERROR;
}
/* Bail out if the cache is already full */
if(!cache->free_start)
{
@ -671,7 +670,7 @@ alloc_code(jit_cache_t cache, unsigned int size, unsigned int align)
return 0;
}
/* Allocate aligned memory. */
/* Allocate aligned memory */
ptr = cache->free_start;
if(align > 1)
{

3
jit/jit-vmem.c

@ -145,8 +145,7 @@ jit_vmem_reserve(jit_uint size)
void *addr;
addr = mmap(0, size, PROT_NONE,
MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0);
addr = mmap(0, size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0);
if(addr == MAP_FAILED)
{
return (void *) 0;

Loading…
Cancel
Save