-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[Java] Build memory-core and memory-unsafe as JPMS modules #38998
Labels
Milestone
Comments
This was referenced Nov 30, 2023
lidavidm
pushed a commit
that referenced
this issue
Jan 10, 2024
…39011) Depends on #39134 ### Rationale for this change Part of modularizing Arrow. Allows these components to be used by tools that require JPMS modules such as jlink. ### What changes are included in this PR? - Refactor memory modules so that all netty code is in netty-memory. - All code being injected into Netty packages and have dependencies on Netty's package-private code go into a new module memory-netty-buffer-patch. - The surefire command line has been changed to allow reflection on unsafe to be used by arrow-memory-core - Add module-info files for arrow-memory-core and arrow-memory-unsafe ### Are these changes tested? Yes, existing tests work when run with modules. ### Are there any user-facing changes? Yes, users now need to put --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED on their java command line instead of --add-opens=java.base/java.nio=ALL-UNNAMED since memory-core is now a named module instead of unnamed. **This PR includes breaking changes to public APIs.** Yes, users now need to put --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED on their java command line instead of --add-opens=java.base/java.nio=ALL-UNNAMED since memory-core is now a named module instead of unnamed. * Closes: #38998 Authored-by: James Duong <james.duong@improving.com> Signed-off-by: David Li <li.davidm96@gmail.com>
clayburn
pushed a commit
to clayburn/arrow
that referenced
this issue
Jan 23, 2024
…dules (apache#39011) Depends on apache#39134 ### Rationale for this change Part of modularizing Arrow. Allows these components to be used by tools that require JPMS modules such as jlink. ### What changes are included in this PR? - Refactor memory modules so that all netty code is in netty-memory. - All code being injected into Netty packages and have dependencies on Netty's package-private code go into a new module memory-netty-buffer-patch. - The surefire command line has been changed to allow reflection on unsafe to be used by arrow-memory-core - Add module-info files for arrow-memory-core and arrow-memory-unsafe ### Are these changes tested? Yes, existing tests work when run with modules. ### Are there any user-facing changes? Yes, users now need to put --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED on their java command line instead of --add-opens=java.base/java.nio=ALL-UNNAMED since memory-core is now a named module instead of unnamed. **This PR includes breaking changes to public APIs.** Yes, users now need to put --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED on their java command line instead of --add-opens=java.base/java.nio=ALL-UNNAMED since memory-core is now a named module instead of unnamed. * Closes: apache#38998 Authored-by: James Duong <james.duong@improving.com> Signed-off-by: David Li <li.davidm96@gmail.com>
dgreiss
pushed a commit
to dgreiss/arrow
that referenced
this issue
Feb 19, 2024
…dules (apache#39011) Depends on apache#39134 ### Rationale for this change Part of modularizing Arrow. Allows these components to be used by tools that require JPMS modules such as jlink. ### What changes are included in this PR? - Refactor memory modules so that all netty code is in netty-memory. - All code being injected into Netty packages and have dependencies on Netty's package-private code go into a new module memory-netty-buffer-patch. - The surefire command line has been changed to allow reflection on unsafe to be used by arrow-memory-core - Add module-info files for arrow-memory-core and arrow-memory-unsafe ### Are these changes tested? Yes, existing tests work when run with modules. ### Are there any user-facing changes? Yes, users now need to put --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED on their java command line instead of --add-opens=java.base/java.nio=ALL-UNNAMED since memory-core is now a named module instead of unnamed. **This PR includes breaking changes to public APIs.** Yes, users now need to put --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED on their java command line instead of --add-opens=java.base/java.nio=ALL-UNNAMED since memory-core is now a named module instead of unnamed. * Closes: apache#38998 Authored-by: James Duong <james.duong@improving.com> Signed-off-by: David Li <li.davidm96@gmail.com>
zanmato1984
pushed a commit
to zanmato1984/arrow
that referenced
this issue
Feb 28, 2024
…dules (apache#39011) Depends on apache#39134 ### Rationale for this change Part of modularizing Arrow. Allows these components to be used by tools that require JPMS modules such as jlink. ### What changes are included in this PR? - Refactor memory modules so that all netty code is in netty-memory. - All code being injected into Netty packages and have dependencies on Netty's package-private code go into a new module memory-netty-buffer-patch. - The surefire command line has been changed to allow reflection on unsafe to be used by arrow-memory-core - Add module-info files for arrow-memory-core and arrow-memory-unsafe ### Are these changes tested? Yes, existing tests work when run with modules. ### Are there any user-facing changes? Yes, users now need to put --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED on their java command line instead of --add-opens=java.base/java.nio=ALL-UNNAMED since memory-core is now a named module instead of unnamed. **This PR includes breaking changes to public APIs.** Yes, users now need to put --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED on their java command line instead of --add-opens=java.base/java.nio=ALL-UNNAMED since memory-core is now a named module instead of unnamed. * Closes: apache#38998 Authored-by: James Duong <james.duong@improving.com> Signed-off-by: David Li <li.davidm96@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the enhancement requested
This depends on #39134 .
Build memory-core and memory-unsafe as JPMS modules.
These modules use Unsafe and reflection and require adding --add-opens command line flags since they are now named modules.
Note that memory-netty is omitted because it requires a bigger change to the user's command-line.
Component(s)
Java
The text was updated successfully, but these errors were encountered: