Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement: Add most of missing JDK9+ methods for java.nio buffers #3681

Merged
merged 12 commits into from Jan 17, 2024

Conversation

WojciechMazur
Copy link
Contributor

@WojciechMazur WojciechMazur commented Jan 16, 2024

Adds mising absolute bulk get/put operations for java NIO buffers and some other not yet implemented methods. After this PR there remains only 1 missing method added after JDK8: mismatch.
The follow up PR might contain performance improvements for copying between non-array based buffers
All basic buffers are now generated from template to reduce ammount of copy-pasting and related with that bugs

@WojciechMazur WojciechMazur merged commit b07d16e into scala-native:main Jan 17, 2024
55 of 61 checks passed
@WojciechMazur WojciechMazur deleted the refactor/nio-buffers branch January 17, 2024 00:13
WojciechMazur added a commit to WojciechMazur/scala-native that referenced this pull request Jan 24, 2024
WojciechMazur added a commit to WojciechMazur/scala-native that referenced this pull request Jan 24, 2024
WojciechMazur added a commit to WojciechMazur/scala-native that referenced this pull request Jan 25, 2024
…scala-native#3681)

* Fix accessing mapped byte buffers if offset is not page alligned
* Use template to define base java nio buffer types
* Add JDK13 method Buffer.slice(Int,Int)
* Add absolute bulk offset get/put methods
* Add tests for alignment offsets/slices
* Move ALL java.nio buffer tests to require-jdk16 subdir due to problems with decoupling BufferAdapters for API introduced in JDK9+
* Fix build, move remaining buffer tests to required-jdk16 sources, exclude them in Build def
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.

None yet

1 participant