Home
last modified time | relevance | path

Searched refs:fail_alloc_counter (Results 1 – 2 of 2) sorted by relevance

/external/libxml2/
DtestOOMlib.c31 static int fail_alloc_counter = _TEST_INT_MAX; variable
48 fail_alloc_counter = until_next_fail; in set_fail_alloc_counter()
60 return fail_alloc_counter; in get_fail_alloc_counter()
90 if (fail_alloc_counter <= 0) in decrement_fail_alloc_counter()
95 fail_alloc_counter = _TEST_INT_MAX; in decrement_fail_alloc_counter()
104 fail_alloc_counter -= 1; in decrement_fail_alloc_counter()
/external/dbus/dbus/
Ddbus-memory.c103 static int fail_alloc_counter = _DBUS_INT_MAX; variable
135 fail_alloc_counter = fail_nth; in _dbus_initialize_malloc_debug()
197 fail_alloc_counter = until_next_fail; in _dbus_set_fail_alloc_counter()
200 _dbus_verbose ("Set fail alloc counter = %d\n", fail_alloc_counter); in _dbus_set_fail_alloc_counter()
215 return fail_alloc_counter; in _dbus_get_fail_alloc_counter()
268 if (fail_alloc_counter <= 0) in _dbus_decrement_fail_alloc_counter()
279 fail_alloc_counter = fail_nth; in _dbus_decrement_fail_alloc_counter()
281 fail_alloc_counter = _DBUS_INT_MAX; in _dbus_decrement_fail_alloc_counter()
285 _dbus_verbose ("reset fail alloc counter to %d\n", fail_alloc_counter); in _dbus_decrement_fail_alloc_counter()
292 fail_alloc_counter -= 1; in _dbus_decrement_fail_alloc_counter()