Github user jiexiong commented on the issue:
https://github.com/apache/spark/pull/15722
Here is my understanding: after spilling, it would call reset() to release
the memory. In the reset() function, it deletes all the memory pages, but it
did not release any memory from longArray(). So the longArray will keep
growing. By freeing up the array and allocate only the initial size to it, we
can ensure the longArray would not grow indefinitely.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]