Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
MALLOC_DEBUG: enable the option libc.debug.malloc = 10
Browse files Browse the repository at this point in the history
Fix the compile warning to let the libc.debug.malloc=10 works well
Due to unsuitable value comparison, which cause compiler optimize the
code of comparing two digits.

Change-Id: I0bedd596c9ca2ba308fb008da20ecb328d8548f5
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Author: liu chuansheng <chuansheng.liu@intel.com>
  • Loading branch information
Bruce Beare committed Dec 5, 2011
1 parent e480fc8 commit 89d3fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/bionic/malloc_debug_leak.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ int get_backtrace(intptr_t* addrs, size_t max_entries)
// =============================================================================

#define CHK_FILL_FREE 0xef
#define CHK_SENTINEL_VALUE 0xeb
#define CHK_SENTINEL_VALUE (char)0xeb
#define CHK_SENTINEL_HEAD_SIZE 16
#define CHK_SENTINEL_TAIL_SIZE 16
#define CHK_OVERHEAD_SIZE ( CHK_SENTINEL_HEAD_SIZE + \
Expand Down

0 comments on commit 89d3fdc

Please sign in to comment.