diff --git a/CMakeLists.txt b/CMakeLists.txt index 72c9c7c..67b2ef0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ option(EXPOSE_EXTERNAL_RESERVE "Expose an interface to reserve memory using the option(SNMALLOC_RUST_SUPPORT "Build static library for rust" OFF) set(CACHE_FRIENDLY_OFFSET OFF CACHE STRING "Base offset to place linked-list nodes.") -if (CMAKE_BUILD_TYPE STREQUAL "Release") +if ((CMAKE_BUILD_TYPE STREQUAL "Release") AND (NOT SNMALLOC_CI_BUILD)) option(USE_POSIX_COMMIT_CHECKS "Instrument Posix PAL to check for access to unused blocks of memory." Off) else () option(USE_POSIX_COMMIT_CHECKS "Instrument Posix PAL to check for access to unused blocks of memory." On) diff --git a/src/mem/largealloc.h b/src/mem/largealloc.h index 76ac256..164382c 100644 --- a/src/mem/largealloc.h +++ b/src/mem/largealloc.h @@ -273,7 +273,7 @@ namespace snmalloc // printf("Alloc %zx (size = %zx)\n", start, size); - void* result = pointer_cast(start); + void* result = pointer_cast(start); if (committed) PAL::template notify_using(result, size);