diff options
author | Lianhui Wang <lianhuiwang09@gmail.com> | 2016-05-10 22:30:39 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-05-10 22:30:39 -0700 |
commit | 9f0a642f842df4d46f809c83df5e8b1803ab89a2 (patch) | |
tree | 23b3ecaeedd69c29cb8fd98adf3c2319e4ed028a /docs | |
parent | 1fbe2785dff53a9eae5f13809091de7520a1e1b2 (diff) | |
download | spark-9f0a642f842df4d46f809c83df5e8b1803ab89a2.tar.gz spark-9f0a642f842df4d46f809c83df5e8b1803ab89a2.tar.bz2 spark-9f0a642f842df4d46f809c83df5e8b1803ab89a2.zip |
[SPARK-15246][SPARK-4452][CORE] Fix code style and improve volatile for
## What changes were proposed in this pull request?
1. Fix code style
2. remove volatile of elementsRead method because there is only one thread to use it.
3. avoid volatile of _elementsRead because Collection increases number of _elementsRead when it insert a element. It is very expensive. So we can avoid it.
After this PR, I will push another PR for branch 1.6.
## How was this patch tested?
unit tests
Author: Lianhui Wang <lianhuiwang09@gmail.com>
Closes #13020 from lianhuiwang/SPARK-4452-hotfix.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions