Ignore:
Timestamp:
Jun 17, 2019, 11:26:14 AM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
8b34df0
Parents:
462a7c7
Message:

Added support for address-sanitizer which requires disabling Heap Statistics and TCMalloc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/Stats/Heap.cc

    r462a7c7 r120a28c3  
    2121#include <iostream>
    2222
    23 #if defined( NO_STATISTICS ) || defined( TCMALLOC )
    24         #define NO_HEAP_STATISTICS
     23#if defined(__has_feature)
     24        #if __has_feature(address_sanitizer)
     25                #define NO_HEAP_STATISTICS
     26        # endif
     27#endif
     28
     29#if defined( NO_STATISTICS ) || defined( TCMALLOC ) || defined(__SANITIZE_ADDRESS__)
     30        #if !defined(NO_HEAP_STATISTICS)
     31                #define NO_HEAP_STATISTICS
     32        #endif
    2533#endif
    2634
Note: See TracChangeset for help on using the changeset viewer.