Browse Source

Fixed handling of the condition when there is no room left for a cache node on the current page.

pull/1/head
Aleksey Demakov 11 years ago
parent
commit
5cb9194703
  1. 8
      ChangeLog
  2. 2
      jit/jit-memory-cache.c

8
ChangeLog

@ -1,6 +1,12 @@
2013-08-13 Chetan Reddy <chetanreddy@gmail.com>
* jit/jit-memory-cache.c (_jit_cache_start_function): If there is no
room left for a cache node on the current page then let restart with
a new page rather than giving up on it.
2013-03-04 Aleksey Demakov <ademakov@gmail.com>
* jit/jit-memory-cache.c (jit/jit-memory-cache.c): the function now
* jit/jit-memory-cache.c (_jit_cache_extend): the function now
returns a value (thanks Alexey Galakhov <agalakhov@gmail.com>).
* include/jit/jit-memory.h, jit/jit-internal.h, jit/jit-memory.c:

2
jit/jit-memory-cache.c

@ -544,7 +544,7 @@ _jit_cache_start_function(jit_cache_t cache, jit_function_t func)
cache, sizeof(struct jit_cache_node), sizeof(void *));
if(!cache->node)
{
return JIT_MEMORY_TOO_BIG;
return JIT_MEMORY_RESTART;
}
cache->node->func = func;

Loading…
Cancel
Save