Skip to content
Snippets Groups Projects
Commit 76e02bfc authored by Christopher Jones's avatar Christopher Jones Committed by Philippe Canal
Browse files

Added suppression entries for determining if TObject on heap

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.
parent 45b9f096
No related branches found
No related tags found
No related merge requests found
......@@ -482,6 +482,29 @@
fun:_ZL20G__cpp_setup_global0v
}
######## ROOT TObject on heap
{
TObject::TObject() uses uninitialized value
Memcheck:Cond
fun:_ZN7TObjectC1Ev
...
}
{
TObject::TObject(const TObject&) uses uninitialized value
Memcheck:Cond
fun:_ZN7TObjectC1ERKS_
...
}
{
gcc optimizer confuses valgrind on TObject::~TObject()
Memcheck:Cond
fun:_ZN7TObjectD1Ev
...
}
######### Misc
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment