-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AtomicBuffer acquire/release methods (#314)
* AtomicBuffer acquire/release operations. The AtomicBuffer has release method for every ordered method. So for e.g. a AtomicBUffer.putLongOrdered, there is a putLongRelease. The ordered method will call the release version, so there is a sligth performance penalty. Also acquire get methods have been added that have slightly weaker memory ordering semantics compared to a volatile read. Which could provide more oppertunity for the JIT to do its magic and in theory could give better performance on ISAs with weaker memory models. * Added JCStressTests for release/acquire * Added @SInCE * Fixed checkstyle issues in UnsafeBufferTest
- Loading branch information
Showing
16 changed files
with
395 additions
and
170 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,12 @@ | ||
To run the jcstress concurrency tests directly without Gradle, do the following: | ||
|
||
``` | ||
./gradlew ./gradlew :agrona-concurrency-tests:shadowJar | ||
``` | ||
The above will build the appropriate JCStress binary. | ||
|
||
And then: | ||
``` | ||
java -jar agrona-concurrency-tests/build/libs/concurrency-tests.jar YourTest -jvmArgsPrepend "--add-exports java.base/jdk.internal.misc=ALL-UNNAMED" | ||
``` | ||
Make sure to replace the `YourTest` by the appropriate JCStress test. |
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
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
Oops, something went wrong.