Skip to content
Snippets Groups Projects
  • Christopher Jones's avatar
    76e02bfc
    Added suppression entries for determining if TObject on heap · 76e02bfc
    Christopher Jones authored
    To determine if TObject is on the heap we read the value of a member
    data before it has been set by the constructor. If it was heap
    allocated the TObject::operator new will have filled special values
    into the memory area. However, for stack allocated it is
    unset. This makes valgrind report an error. Given we intend this
    behavior, we suppress the message.
    76e02bfc
    History
    Added suppression entries for determining if TObject on heap
    Christopher Jones authored
    To determine if TObject is on the heap we read the value of a member
    data before it has been set by the constructor. If it was heap
    allocated the TObject::operator new will have filled special values
    into the memory area. However, for stack allocated it is
    unset. This makes valgrind report an error. Given we intend this
    behavior, we suppress the message.