Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respects aligned memory access constraint (#8329)
* Respects aligned memory access constraint specifically in off-heap versions of primitive-collections and NumberArray. UnsafeUtil provides means of knowing about aligned memory access constraint, but doesn't automatically conforms access by it. Need for aligned memory access is hardware dependent. Currently the muninn page cache has some logic for this. Other users of UnsafeUtil are the primitive-collections and NumberArray. They have different constraints themselves than the page cache do and so they have been changed to conform to alignment constraints, but can get away with doing less adaptations than the page cache does. This is the primary reason UnsafeUtil doesn't do these things automatically, because there are different optimizations that apply to different use cases. Original issue came up when noticing that using primitive-collections or NumberArray on Solaris could crash the JVM. * Fixed some typos and better method naming in UnsafeUtil
- Loading branch information
Showing
8 changed files
with
379 additions
and
34 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
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
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.