From 6da3e92dab82554db8492d2bd7981ecd9ef3fd65 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期四, 23 七月 2020 15:57:34 +0800
Subject: [PATCH] sycronized

---
 src/queue/mm.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/queue/mm.c b/src/queue/mm.c
index bfd27d9..179f369 100644
--- a/src/queue/mm.c
+++ b/src/queue/mm.c
@@ -81,7 +81,7 @@
 static void *place(void *bp, size_t size);
 static void *find_fit(size_t size);
 static void *coalesce(void *bp);
-static void rm_fblock(void *bp);
+static inline void rm_fblock(void *bp);
 static void insert_fblock (void *bp);
 
 static void *mem_sbrk(int incr);
@@ -444,9 +444,12 @@
 /**
  * remove a block form free list
  */
-static void rm_fblock(void *rbp)
+static inline void rm_fblock(void *rbp)
 {
   // the successor of the previous block of rbp point to next block of rbp
+// err_msg(0, "SUCCRP(PREV_FBLKP(rbp) %p\n", SUCCRP(PREV_FBLKP(rbp)) );
+// err_msg(0, "NEXT_FBLKP(rbp)%p\n",        NEXT_FBLKP(rbp) );
+
   PUT_PTR(SUCCRP(PREV_FBLKP(rbp)), NEXT_FBLKP(rbp));
   // the predecessor of then next block of rbp point to previous block of rbp
   PUT_PTR(PREDRP(NEXT_FBLKP(rbp)), PREV_FBLKP(rbp));

--
Gitblit v1.8.0