From e9560dbece41136ffedd786723717efaa2a3a9fd Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Tue, 20 Oct 2020 16:30:44 -0400 Subject: Fix the 4 TACLeBench members that would not loop before - anagram, audiobeam: Reset heap in _init() function - g723_enc: Don't use static local variables - huff_dec: Reset all global state in _init() function --- all_pairs/source/audiobeam/audiobeam.c | 12 +++++------- all_pairs/source/audiobeam/audiobeamlibmalloc.c | 7 ++++++- all_pairs/source/audiobeam/audiobeamlibmalloc.h | 2 ++ 3 files changed, 13 insertions(+), 8 deletions(-) (limited to 'all_pairs/source/audiobeam') diff --git a/all_pairs/source/audiobeam/audiobeam.c b/all_pairs/source/audiobeam/audiobeam.c index 50ebfff..7d89f06 100644 --- a/all_pairs/source/audiobeam/audiobeam.c +++ b/all_pairs/source/audiobeam/audiobeam.c @@ -104,6 +104,8 @@ void audiobeam_init() unsigned int i; unsigned char *p; volatile char bitmask = 0; + // Reset heap + audiobeam_free_all(); /* Apply volatile XOR-bitmask to entire input array. @@ -578,16 +580,12 @@ void _Pragma( "entrypoint" ) audiobeam_main( void ) int main( int argc, char **argv ) { - //SET_UP - int jobsComplete; - int maxJobs=100; - for (jobsComplete=0; jobsComplete