fix TRIE_LOCK_AT_WRITE_LEVEL scheme

This commit is contained in:
Ricardo Rocha
2011-12-14 10:33:18 +00:00
parent 5f6fd7daea
commit f11e435db6
5 changed files with 135 additions and 115 deletions

View File

@@ -41,7 +41,7 @@
*********************/
#ifdef USE_PAGES_MALLOC
#define STRUCTS_PER_PAGE(STR_TYPE) ((Yap_page_size - STRUCT_SIZE(struct page_header)) / STRUCT_SIZE(STR_TYPE))
#define STRUCTS_PER_PAGE(STR_TYPE) ((Yap_page_size - ADJUST_SIZE(sizeof(struct page_header))) / ADJUST_SIZE(sizeof(STR_TYPE)))
#define INIT_PAGES(PG, STR_TYPE) \
INIT_LOCK(Pg_lock(PG)); \