Skip to content

Commit

Permalink
QM_MALLOC: proper fragment debugging patterns for x86_64
Browse files Browse the repository at this point in the history
(cherry picked from commit cd201b6)
  • Loading branch information
liviuchircu committed May 19, 2014
1 parent 8a3a723 commit f03f552
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mem/q_malloc.c
Expand Up @@ -121,9 +121,17 @@ inline static unsigned long big_hash_idx(unsigned long s)


#ifdef DBG_QM_MALLOC

#ifdef __CPU_x86_64
#define ST_CHECK_PATTERN 0xf0f0f0f0f0f0f0f0
#define END_CHECK_PATTERN1 0xc0c0c0c0c0c0c0c0
#define END_CHECK_PATTERN2 0xabcdefedabcdefed
#else
#warning "assuming sizeof(long) = 4"
#define ST_CHECK_PATTERN 0xf0f0f0f0
#define END_CHECK_PATTERN1 0xc0c0c0c0
#define END_CHECK_PATTERN2 0xabcdefed
#endif


static void qm_debug_frag(struct qm_block* qm, struct qm_frag* f)
Expand Down

0 comments on commit f03f552

Please sign in to comment.