Github user JoshRosen commented on the pull request:

    https://github.com/apache/spark/pull/5868#issuecomment-101077340
  
    @zsxwing Regarding the `synchronized(this)` in TaskMemoryManager, I think 
that my goal was to guard against cases where racing threads allocate pages 
with the same page number.  I think that this is a carryover from older 
versions of the code, though, and I agree that this synchronization probably 
isn't necessary as I think that we assume single-threadedness in tasks.  We 
could clean that up here or as part of a separate cleanup PR for that file.


---
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]

Reply via email to