-
Notifications
You must be signed in to change notification settings - Fork 76
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
Parse -Xmso from OPENJ9_JAVA_OPTIONS for main thread #644
Conversation
} | ||
continue; /* str already incremented */ | ||
} | ||
str++; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to be a little more sophisticated (with some of the features of parseOptionsBuffer()
) to avoid mishandling quotes, etc. and values like this: -Xmso64k -Dchild.stack=-Xmso32k
(the second occurrence of -Xmso
should not apply).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed offline, this is better, but doesn't handle quotes (and escapes) like the VM. Quotes need not be just at the beginning and end of elements of the value (e.g. -Xmso64k -Dchild.options="-Xint -Xmso32k -Xms4M"
would not be processed properly).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated it to re-use the parsing code in libjli/args.c
b4aeaca
to
ac7cf7a
Compare
Issue eclipse-openj9/openj9#16105 Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
I've made the suggested changes. |
Jenkins compile alinux64 jdknext |
Issue eclipse-openj9/openj9#16105 Backport of ibmruntimes/openj9-openjdk-jdk#644 Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Issue eclipse-openj9/openj9#16105 Backport of ibmruntimes/openj9-openjdk-jdk#644 Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Issue eclipse-openj9/openj9#16105 Backport of ibmruntimes/openj9-openjdk-jdk#644 Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Issue eclipse-openj9/openj9#16105 Backport of ibmruntimes/openj9-openjdk-jdk#644 Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Issue eclipse-openj9/openj9#16105 Backport of ibmruntimes/openj9-openjdk-jdk#644, the JLI helper functions, and parts of args.c applicable to jdk8. Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Issue eclipse-openj9/openj9#16105 Backport of ibmruntimes/openj9-openjdk-jdk#644, the JLI helper functions, and parts of args.c applicable to jdk8. Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Issue eclipse-openj9/openj9#16105 Backport of ibmruntimes/openj9-openjdk-jdk#644, the JLI helper functions, and parts of args.c applicable to jdk8. Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Issue eclipse-openj9/openj9#16105 Backport of ibmruntimes/openj9-openjdk-jdk#644, the JLI helper functions, and parts of args.c applicable to jdk8. Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Issue eclipse-openj9/openj9#16105 Backport of ibmruntimes/openj9-openjdk-jdk#644, the JLI helper functions, and parts of args.c applicable to jdk8. Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Issue eclipse-openj9/openj9#16105