mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
optimize rule processing
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
83add2bd9b
commit
c58b4f9a53
28 changed files with 267 additions and 200 deletions
|
@ -231,9 +231,8 @@ void * memory::allocate(size_t s) {
|
|||
return 0;
|
||||
s = s + sizeof(size_t); // we allocate an extra field!
|
||||
void * r = malloc(s);
|
||||
if (r == 0) {
|
||||
if (r == 0)
|
||||
throw_out_of_memory();
|
||||
}
|
||||
*(static_cast<size_t*>(r)) = s;
|
||||
g_memory_thread_alloc_size += s;
|
||||
if (g_memory_thread_alloc_size > SYNCH_THRESHOLD) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue