Skip to content

Conversation

@dlmarion
Copy link
Contributor

No description provided.

@dlmarion dlmarion added this to the 2.1.5 milestone Jan 15, 2026
@dlmarion dlmarion self-assigned this Jan 15, 2026
@dlmarion dlmarion requested a review from ctubbsii January 15, 2026 21:00
String javaHome = System.getProperty("java.home");
String javaBin = javaHome + File.separator + "bin" + File.separator + "java";

Stream<String> defaultJvmOpts = Stream.of("-XX:+PerfDisableSharedMem", "-XX:+AlwaysPreTouch");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine since the stream isn't reused, but it might be better to put these in a Set.of outside the method, and call .stream() inside the method, to reuse the set.

However, I don't even know why these are here as default options. There's no documentation explaining why they were added. They were added in https://issues.apache.org/jira/browse/ACCUMULO-3699, but no specific explanation about what they were expected to achieve. They may be OBE.

Copy link
Member

@ctubbsii ctubbsii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I'm still not sure we actually need those default JVM args (or the default system props, either), but we don't need to determine that in this PR.

@dlmarion dlmarion merged commit 57024c2 into apache:2.1 Jan 15, 2026
8 checks passed
@dlmarion dlmarion deleted the fix-mac-args-5999 branch January 15, 2026 23:01
dlmarion added a commit to dlmarion/accumulo-classloaders that referenced this pull request Jan 15, 2026
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.

2 participants