CF and Add checks to CI.

This commit is contained in:
Matthew Parkinson
2020-02-05 13:41:49 +00:00
parent 28658a47f0
commit de64a8c0c2
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -273,7 +273,7 @@ namespace snmalloc
// printf("Alloc %zx (size = %zx)\n", start, size);
void* result = pointer_cast<void>(start);
void* result = pointer_cast<void>(start);
if (committed)
PAL::template notify_using<NoZero>(result, size);