You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by kiszk <gi...@git.apache.org> on 2017/05/03 18:30:56 UTC

[GitHub] spark pull request #17180: [SPARK-19839][Core]release longArray in BytesToBy...

Github user kiszk commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17180#discussion_r114619730
  
    --- Diff: core/src/main/java/org/apache/spark/unsafe/map/BytesToBytesMap.java ---
    @@ -358,10 +358,20 @@ public long spill(long numBytes) throws IOException {
               return 0L;
             }
     
    +        long released = 0L;
    +        // longArray will not be used anymore, but may take significant amount of memory
    +        // but never released until the task is complete.
    --- End diff --
    
    This line seems to explain the behavior of current code (before applying this PR). It would be good to explain the behavior of the new code.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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