Skip to content

Conversation

@rxin
Copy link
Contributor

@rxin rxin commented Aug 11, 2015

PlatformDependent.UNSAFE is way too verbose.

@rxin
Copy link
Contributor Author

rxin commented Aug 11, 2015

cc @davies for quick review.

I also plan to add some debugging functionality to help diagnose segfault.

@davies
Copy link
Contributor

davies commented Aug 11, 2015

Isn't it more clear to use UNSAFE than Platform? otherwise LGTM.

@SparkQA
Copy link

SparkQA commented Aug 11, 2015

Test build #40395 has finished for PR 8094 at commit 229b603.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor Author

rxin commented Aug 11, 2015

@davies I didn't think of Unsafe since it was named PlatformDependent from the beginning (which I think came from Netty).

I agree that Unsafe is more clear, but also worry that unsafe is too "scary" ( probably why the new Unsafe-like feature in the JVM is being called Variable Handles http://openjdk.java.net/jeps/193 )

@SparkQA
Copy link

SparkQA commented Aug 11, 2015

Test build #1442 has finished for PR 8094 at commit 229b603.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@davies
Copy link
Contributor

davies commented Aug 11, 2015

@rxin That makes sense, merging this into master and 1.5.

asfgit pushed a commit that referenced this pull request Aug 11, 2015
PlatformDependent.UNSAFE is way too verbose.

Author: Reynold Xin <rxin@databricks.com>

Closes #8094 from rxin/SPARK-9815 and squashes the following commits:

229b603 [Reynold Xin] [SPARK-9815] Rename PlatformDependent.UNSAFE -> Platform.

(cherry picked from commit d378396)
Signed-off-by: Davies Liu <davies.liu@gmail.com>
@asfgit asfgit closed this in d378396 Aug 11, 2015
CodingCat pushed a commit to CodingCat/spark that referenced this pull request Aug 17, 2015
PlatformDependent.UNSAFE is way too verbose.

Author: Reynold Xin <rxin@databricks.com>

Closes apache#8094 from rxin/SPARK-9815 and squashes the following commits:

229b603 [Reynold Xin] [SPARK-9815] Rename PlatformDependent.UNSAFE -> Platform.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants