Skip to content

Commit

Permalink
Disable guards for all of src/boehm_gc.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbehrends committed Oct 23, 2019
1 parent 09c7f46 commit d2f2b5a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/boehm_gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#include "hpc/thread.h"
#endif

#ifndef WARD_ENABLED

static inline Bag * DATA(BagHeader * bag)
{
return (Bag *)(((char *)bag) + sizeof(BagHeader));
Expand Down Expand Up @@ -83,8 +85,6 @@ void InitFreeFuncBag(UInt type, TNumFreeFuncBags finalizer_func)
TabFreeFuncBags[type] = finalizer_func;
}

#ifndef WARD_ENABLED

static void StandardFinalizer(void * bagContents, void * data)
{
Bag bag;
Expand All @@ -94,9 +94,6 @@ static void StandardFinalizer(void * bagContents, void * data)
TabFreeFuncBags[TNUM_BAG(bag)](bag);
}

#endif


static GC_descr GCDesc[MAX_GC_PREFIX_DESC + 1];
static unsigned GCKind[MAX_GC_PREFIX_DESC + 1];
static GC_descr GCMDesc[MAX_GC_PREFIX_DESC + 1];
Expand Down Expand Up @@ -551,3 +548,5 @@ void SwapMasterPoint(Bag bag1, Bag bag2)
SET_PTR_BAG(bag1, ptr2);
SET_PTR_BAG(bag2, ptr1);
}

#endif // WARD_ENABLED

0 comments on commit d2f2b5a

Please sign in to comment.