I don't see a way to attach a file. In case here is the patch.
--- epics/base-3.14.10/src/gdd/gddNewDel.h +++ epics/base-3.14.10/src/gdd/gddNewDel.h @@ -93,18 +93,17 @@ int tot; \ clas *nn,*dn; \ epicsThreadOnce ( &once, clas##_gddNewDelInit, 0 ); \ + epicsGuard < epicsMutex > guard ( *clas::pNewdel_lock ); \ if(!clas::newdel_freelist) { \ tot=gdd_CHUNK_NUM; \ nn=(clas*)malloc(gdd_CHUNK(clas)); \ gddGlobalCleanupAdd (nn); \ for(dn=nn;--tot;dn++) dn->newdel_setNext((char*)(dn+1)); \ - epicsGuard < epicsMutex > guard ( *clas::pNewdel_lock ); \ (dn)->newdel_setNext(clas::newdel_freelist); \ clas::newdel_freelist=(char*)nn; \ } \ if(size==sizeof(clas)) { \ { \ - epicsGuard < epicsMutex > guard ( *clas::pNewdel_lock ); \ dn=(clas*)clas::newdel_freelist; \ clas::newdel_freelist=((clas*)clas::newdel_freelist)->newdel_next(); \ } \
I don't see a way to attach a file. In case here is the patch.
--- epics/base- 3.14.10/ src/gdd/ gddNewDel. h 3.14.10/ src/gdd/ gddNewDel. h dOnce ( &once, clas##_ gddNewDelInit, 0 ); \ !clas:: newdel_ freelist) { \
tot=gdd_ CHUNK_NUM; \
nn=(clas* )malloc( gdd_CHUNK( clas)); \
gddGlobalClea nupAdd (nn); \
for(dn= nn;--tot; dn++) dn->newdel_ setNext( (char*) (dn+1)) ; \
(dn)- >newdel_ setNext( clas::newdel_ freelist) ; \
clas: :newdel_ freelist= (char*) nn; \ size==sizeof( clas)) { \
dn= (clas*) clas::newdel_ freelist; \
clas: :newdel_ freelist= ((clas* )clas:: newdel_ freelist) ->newdel_ next(); \
+++ epics/base-
@@ -93,18 +93,17 @@
int tot; \
clas *nn,*dn; \
epicsThrea
+ epicsGuard < epicsMutex > guard ( *clas::pNewdel_lock ); \
if(
- epicsGuard < epicsMutex > guard ( *clas::pNewdel_lock ); \
} \
if(
{ \
- epicsGuard < epicsMutex > guard ( *clas::pNewdel_lock ); \
} \