GitHub user JoshRosen opened a pull request:

    https://github.com/apache/spark/pull/5814

    Suppress compiler warnings due to use of sun.misc.Unsafe; remove use of 
Unsafe.setMemory

    This patch suppresses compiler warnings due to our use of `sun.misc.Unsafe` 
(introduced in #5725).  These warnings can only be suppressed via the 
`-XDignore.symbol.file` javac flag; the `@SuppressWarnings` annotation won't 
work for these.
    
    I also removed an unnecessary use of `Unsafe.setMemory`, which isn't 
present in certain versions of Java 6.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/JoshRosen/spark unsafe-compiler-warnings-fixes

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/5814.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5814
    
----
commit 96d41c94ceee04bc645d5dff452c4398ea70286a
Author: Josh Rosen <[email protected]>
Date:   2015-04-30T18:18:03Z

    Use -XDignore.symbol.file to suppress warnings about sun.misc.Unsafe usage

commit 50230c0d9f5cbd143c7183201973a8462962c6e9
Author: Josh Rosen <[email protected]>
Date:   2015-04-30T18:32:05Z

    Remove usage of Unsafe.setMemory

----


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