From 572436a77d7de6e4bc783ff7e23f48838b141b33 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Mon, 13 Jan 2014 21:26:00 -0600 Subject: Improve robustness of 'free' flag in HeapMgr. Change-Id: Iea61e36289410540710ced9bb0098c3fadc4e6a4 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8055 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert Reviewed-by: Daniel M. Crowell Reviewed-by: A. Patrick Williams III --- src/include/kernel/heapmgr.H | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/include/kernel') diff --git a/src/include/kernel/heapmgr.H b/src/include/kernel/heapmgr.H index cee0517f0..21d53c081 100644 --- a/src/include/kernel/heapmgr.H +++ b/src/include/kernel/heapmgr.H @@ -5,7 +5,7 @@ /* */ /* IBM CONFIDENTIAL */ /* */ -/* COPYRIGHT International Business Machines Corp. 2010,2013 */ +/* COPYRIGHT International Business Machines Corp. 2010,2014 */ /* */ /* p1 */ /* */ @@ -134,9 +134,9 @@ class HeapManager { struct { - bool free:1; //!< Is chunk free - bool coalesce:1; //!< Is chunk being coalesced - uint64_t bucket:62; //!< Which bucket this chunk belongs to + char free:8; //!< Is chunk free + char coalesce:8; //!< Is chunk being coalesced + uint64_t bucket:48; //!< Which bucket this chunk belongs to } PACKED; chunk_t* next; //!< Next chunk (for unallocated chunks only) -- cgit v1.2.3