From 2c78afed09ee6c505d73de4657e3f1c46c25b316 Mon Sep 17 00:00:00 2001 From: jzhou Date: Tue, 10 May 2011 22:05:30 +0000 Subject: [PATCH] Small bug fix for SPECjbb. And the BAMBOO_ASSERT macro has been moved to runtime_arch.h under tilera directory. It does not need the error # any more --- Robust/src/Runtime/bamboo/multicoregcprofile.h | 8 +++++++- Robust/src/Runtime/bamboo/multicoremsg.c | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Robust/src/Runtime/bamboo/multicoregcprofile.h b/Robust/src/Runtime/bamboo/multicoregcprofile.h index d6ffeff3..4a63185f 100644 --- a/Robust/src/Runtime/bamboo/multicoregcprofile.h +++ b/Robust/src/Runtime/bamboo/multicoregcprofile.h @@ -105,6 +105,12 @@ void gc_outputProfileData(); gc_profileItem(); \ } \ } +#define GCPROFILE_END() \ + { \ + if(gc_profile_flag) { \ + gc_profileEnd(); \ + } \ + } #else // MGC_SPEC #define GCPROFILE_RECORD_LOBJ() (gc_num_lobj++) #define GCPROFILE_RECORD_LOBJSPACE() (gc_num_lobjspace = sumsize) @@ -120,9 +126,9 @@ void gc_outputProfileData(); #define GCPROFILE_RECORD_LIVE_OBJ() (gc_num_liveobj++) #define GCPROFILE_START() gc_profileStart() #define GCPROFILE_ITEM() gc_profileItem() +#define GCPROFILE_END() gc_profileEnd() #endif // MGC_SPEC -#define GCPROFILE_END() gc_profileEnd() #define GCPROFILE_INIT() gc_profileInit() #else // GC_PROFILE diff --git a/Robust/src/Runtime/bamboo/multicoremsg.c b/Robust/src/Runtime/bamboo/multicoremsg.c index 07189da4..5a783fed 100644 --- a/Robust/src/Runtime/bamboo/multicoremsg.c +++ b/Robust/src/Runtime/bamboo/multicoremsg.c @@ -65,7 +65,7 @@ INLINE unsigned int checkMsgLength_I(unsigned int realtype) { #else unsigned int type = realtype; #endif - BAMBOO_ASSERT(type<=MSGEND, 0x1234); + BAMBOO_ASSERT(type<=MSGEND); #ifdef TASK #ifdef MULTICORE_GC if(type==TRANSOBJ||type==GCLOBJINFO) { -- 2.34.1