aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-09-25 16:29:41 +0200
committerSverker Eriksson <[email protected]>2012-09-25 16:29:41 +0200
commit34e771ac00207aafe958eef1e5b424ee8a08a3d9 (patch)
tree8ebb6e32ee34221dc1e63b27f00e816fd39bc4e9
parent89ca0448e93beed780bc4c233529ce73063e8337 (diff)
downloadotp-34e771ac00207aafe958eef1e5b424ee8a08a3d9.tar.gz
otp-34e771ac00207aafe958eef1e5b424ee8a08a3d9.tar.bz2
otp-34e771ac00207aafe958eef1e5b424ee8a08a3d9.zip
Add extra valgrind suppression file for halfword emulator
-rw-r--r--erts/emulator/valgrind/suppress.halfword56
1 files changed, 56 insertions, 0 deletions
diff --git a/erts/emulator/valgrind/suppress.halfword b/erts/emulator/valgrind/suppress.halfword
new file mode 100644
index 0000000000..8fe448d897
--- /dev/null
+++ b/erts/emulator/valgrind/suppress.halfword
@@ -0,0 +1,56 @@
+# Extra suppressions specific for the halfword emulator.
+
+# --- Suppress all offheap binaries ---
+# Valgrinds leak check does not recognize pointers that are stored
+# at unaligned addresses. In halfword emulator we store 64-bit pointers
+# to offheap data on 32-bit aligned heaps.
+# We solve this by suppressing allocation of all offheap structures
+# that are not referenced by other tables (ie binaries).
+
+{
+Halfword erts_bin_nrml_alloc
+Memcheck:Leak
+...
+fun:erts_bin_nrml_alloc
+...
+}
+
+{
+Halfword erts_bin_realloc
+Memcheck:Leak
+...
+fun:erts_bin_realloc
+...
+}
+
+{
+Halfword erts_bin_realloc_fnf
+Memcheck:Leak
+...
+fun:erts_bin_realloc_fnf
+...
+}
+
+{
+Halfword erts_bin_drv_alloc
+Memcheck:Leak
+...
+fun:erts_bin_drv_alloc
+...
+}
+
+{
+Halfword erts_bin_drv_alloc_fnf
+Memcheck:Leak
+...
+fun:erts_bin_drv_alloc_fnf
+...
+}
+
+{
+Halfword erts_create_magic_binary
+Memcheck:Leak
+...
+fun:erts_create_magic_binary
+...
+}