"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dbus/dbus-memory.c" between
dbus-1.13.12.tar.xz and dbus-1.13.14.tar.xz

About: D-Bus is an inter-process communication (IPC) system, allowing multiple, concurrently-running applications to communicate with one another. D-Bus supplies both a system daemon and a per-user-login-session daemon. Development version.

dbus-memory.c  (dbus-1.13.12.tar.xz):dbus-memory.c  (dbus-1.13.14.tar.xz)
skipping to change at line 102 skipping to change at line 102
/** @} */ /* end of public API docs */ /** @} */ /* end of public API docs */
/** /**
* @addtogroup DBusMemoryInternals * @addtogroup DBusMemoryInternals
* *
* @{ * @{
*/ */
#ifdef DBUS_ENABLE_EMBEDDED_TESTS #ifdef DBUS_ENABLE_EMBEDDED_TESTS
/* Test-only, does not need to be thread-safe */
static dbus_bool_t debug_initialized = FALSE; static dbus_bool_t debug_initialized = FALSE;
static int fail_nth = -1; static int fail_nth = -1;
static size_t fail_size = 0; static size_t fail_size = 0;
static int fail_alloc_counter = _DBUS_INT_MAX; static int fail_alloc_counter = _DBUS_INT_MAX;
static int n_failures_per_failure = 1; static int n_failures_per_failure = 1;
static int n_failures_this_failure = 0; static int n_failures_this_failure = 0;
static dbus_bool_t guards = FALSE; static dbus_bool_t guards = FALSE;
static dbus_bool_t disable_mem_pools = FALSE; static dbus_bool_t disable_mem_pools = FALSE;
static dbus_bool_t backtrace_on_fail_alloc = FALSE; static dbus_bool_t backtrace_on_fail_alloc = FALSE;
static dbus_bool_t malloc_cannot_fail = FALSE; static dbus_bool_t malloc_cannot_fail = FALSE;
skipping to change at line 263 skipping to change at line 264
dbus_bool_t dbus_bool_t
_dbus_decrement_fail_alloc_counter (void) _dbus_decrement_fail_alloc_counter (void)
{ {
_dbus_initialize_malloc_debug (); _dbus_initialize_malloc_debug ();
#ifdef DBUS_WIN #ifdef DBUS_WIN
{ {
static dbus_bool_t called = 0; static dbus_bool_t called = 0;
if (!called) if (!called)
{ {
_dbus_verbose("TODO: memory allocation testing errors disabled for now\n "); _dbus_verbose_raw ("TODO: memory allocation testing errors disabled for now\n");
called = 1; called = 1;
} }
return FALSE; return FALSE;
} }
#endif #endif
if (fail_alloc_counter <= 0) if (fail_alloc_counter <= 0)
{ {
if (backtrace_on_fail_alloc) if (backtrace_on_fail_alloc)
_dbus_print_backtrace (); _dbus_print_backtrace ();
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)