You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Eric Liang (JIRA)" <ji...@apache.org> on 2016/06/17 19:03:05 UTC

[jira] [Created] (SPARK-16021) Zero out freed memory in test to help catch correctness bugs

Eric Liang created SPARK-16021:
----------------------------------

             Summary: Zero out freed memory in test to help catch correctness bugs
                 Key: SPARK-16021
                 URL: https://issues.apache.org/jira/browse/SPARK-16021
             Project: Spark
          Issue Type: Improvement
            Reporter: Eric Liang


In both on-heap and off-heap modes, it would be helpful to immediately zero out (or otherwise fill with a sentinel value) memory when an object is deallocated.

Currently, in on-heap mode, freed memory can be accessed without visible error if no other consumer has written to the same space. Similarly, off-heap memory can be accessed without fault if the allocation library has not released the pages back to the OS. Zeroing out freed memory would make these errors immediately visible as a correctness problem.

Since this would add some performance overhead, it would make sense to conf-flag and enable only in test.

cc [~sameerag] [~hvanhovell]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org