summaryrefslogtreecommitdiffstats
path: root/src/include/kernel/heapmgr.H
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2014-01-13 21:26:00 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-01-15 16:37:24 -0600
commit572436a77d7de6e4bc783ff7e23f48838b141b33 (patch)
treebbdbc13126360edb64b6ec00c9a7bdb733c196ca /src/include/kernel/heapmgr.H
parent1519b0b4786367a4855edfd24844b896293d5d80 (diff)
downloadtalos-hostboot-572436a77d7de6e4bc783ff7e23f48838b141b33.tar.gz
talos-hostboot-572436a77d7de6e4bc783ff7e23f48838b141b33.zip
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 <dgilbert@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/kernel/heapmgr.H')
-rw-r--r--src/include/kernel/heapmgr.H8
1 files changed, 4 insertions, 4 deletions
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)
OpenPOWER on IntegriCloud