Github user michaelkamprath commented on a diff in the pull request: https://github.com/apache/spark/pull/16403#discussion_r94049578 --- Diff: common/unsafe/src/main/java/org/apache/spark/unsafe/Platform.java --- @@ -252,6 +272,7 @@ public static void throwException(Throwable t) { LONG_ARRAY_OFFSET = 0; FLOAT_ARRAY_OFFSET = 0; DOUBLE_ARRAY_OFFSET = 0; + _doubleAccessFunc = null; --- End diff -- I am setting it to `null` to keep in line with the behavior of the `_UNSAFE` class variable. In case, `_UNSAFE` is null. In that case, any calls to the `Platform.get...` or `Platform.put...` will result in a `NullPointerException`. I'm assuming it is a programming error elsewhere to call these methods without checking ( [example](https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/memory/MemoryManager.scala#L200) ).
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org