diff --git a/src/common/classes/alloc.cpp b/src/common/classes/alloc.cpp index 6f2f18f717..2c37c9b1dc 100644 --- a/src/common/classes/alloc.cpp +++ b/src/common/classes/alloc.cpp @@ -162,10 +162,10 @@ Firebird::Vector extents_cache; Mutex cache_mutex; // avoid races during initialization +size_t map_page_size = 0; + inline size_t get_map_page_size() { - static size_t map_page_size = 0; - if (! map_page_size) { map_page_size = get_page_size();