-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stubs for jdk.internal.misc.Unsafe
- Loading branch information
1 parent
073edd7
commit c133c57
Showing
5 changed files
with
64 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// javac --add-exports java.base/jdk.internal.misc=ALL-UNNAMED -d . UnsafeUsage.java | ||
|
||
package samples.jdkinternal.unsafe.trivial; | ||
|
||
import jdk.internal.misc.Unsafe; | ||
|
||
public class UnsafeUsage { | ||
|
||
public static void main(String[] args) { | ||
Unsafe unsafe = Unsafe.getUnsafe(); | ||
|
||
int isBigEndian = !unsafe.isBigEndian() ? 1 : 0; | ||
} | ||
|
||
} |
Binary file added
BIN
+472 Bytes
tests/test_data/samples/jdkinternal/unsafe/trivial/UnsafeUsage.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters