fix YAPOR_THREADS memory macros

This commit is contained in:
joao 2013-12-16 16:51:00 +00:00
parent 52b863eab4
commit da0f807abf
2 changed files with 2 additions and 2 deletions

View File

@ -417,7 +417,7 @@ extern int Yap_page_size;
} }
#endif /***********************************************************************************/ #endif /***********************************************************************************/
#ifdef THREADS #if defined(THREADS) && defined(TABLING)
#define ALLOC_STRUCT(STR, STR_TYPE, _PG_ENT) \ #define ALLOC_STRUCT(STR, STR_TYPE, _PG_ENT) \
GET_FREE_STRUCT(STR, STR_TYPE, LOCAL##_PG_ENT, GLOBAL##_PG_ENT) GET_FREE_STRUCT(STR, STR_TYPE, LOCAL##_PG_ENT, GLOBAL##_PG_ENT)
#define FREE_STRUCT(STR, STR_TYPE, _PG_ENT) \ #define FREE_STRUCT(STR, STR_TYPE, _PG_ENT) \

View File

@ -159,7 +159,7 @@ struct page_statistics {
#endif /* USE_PAGES_MALLOC */ #endif /* USE_PAGES_MALLOC */
#ifdef THREADS #if defined(THREADS) && defined(TABLING)
#define GET_ALL_PAGE_STATS(STATS, STR_TYPE, _PAGES) \ #define GET_ALL_PAGE_STATS(STATS, STR_TYPE, _PAGES) \
LOCK(GLOBAL_ThreadHandlesLock); \ LOCK(GLOBAL_ThreadHandlesLock); \
CHECK_PAGE_FREE_STRUCTS(STR_TYPE, GLOBAL##_PAGES); \ CHECK_PAGE_FREE_STRUCTS(STR_TYPE, GLOBAL##_PAGES); \