Github user srowen commented on the pull request:
https://github.com/apache/spark/pull/442#issuecomment-40879990
I doubt Hotspot can remove this allocation, but am not sure. It would have
to do a couple things -- inline the call to 2 other constructors, realize
there's no threading issue in the constructor, realize the dead store. I think
it's worth avoiding manually here.
---
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.
---