Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-15246

Fix code style and improve volatile for SPARK-4452

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Spark Core
    • None

    Description

      for SPARK-4452
      1. Fix code style
      2. remote 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.

      Attachments

        Activity

          People

            lianhuiwang Lianhui Wang
            lianhuiwang Lianhui Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: