diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 940105eea5..f9edf74e50 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,11 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-11-18 18:40 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/vm/dlmalloc.c + ! added workaround for unnecessary checking results of function which + always have to success + 2009-11-18 16:33 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbthread.h * minor cleanup in comment diff --git a/harbour/src/vm/dlmalloc.c b/harbour/src/vm/dlmalloc.c index 6077546982..c6bc678e09 100644 --- a/harbour/src/vm/dlmalloc.c +++ b/harbour/src/vm/dlmalloc.c @@ -1412,9 +1412,15 @@ static int win32munmap(void* ptr, size_t size) { #ifdef HB_SPINLOCK_USE +static int spin_acquire_lock( HB_SPINLOCK_T *l ) +{ + HB_SPINLOCK_ACQUIRE( l ); + return 0; +} + #define MLOCK_T HB_SPINLOCK_T #define INITIAL_LOCK(l) *(l)=HB_SPINLOCK_INIT -#define ACQUIRE_LOCK(l) HB_SPINLOCK_ACQUIRE(l) +#define ACQUIRE_LOCK(l) spin_acquire_lock(l) #define RELEASE_LOCK(l) HB_SPINLOCK_RELEASE(l) #define MLOCK_INIT HB_SPINLOCK_INIT