-
Notifications
You must be signed in to change notification settings - Fork 729
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
Print actual string arguments with -Xtrace (part 2) #20662
Print actual string arguments with -Xtrace (part 2) #20662
Conversation
@TobiAjila could you please review for comments/concerns/feedback? Thanks |
6f968b4
to
2a77535
Compare
runtime/rastrace/j9rastrace.h
Outdated
#define RAS_STACKDEPTH_KEYWORD "STACKDEPTH" | ||
#define RAS_SLEEPTIME_KEYWORD "SLEEPTIME" | ||
#define RAS_COMPRESSION_LEVEL_KEYWORD "STACKCOMPRESSIONLEVEL" | ||
#define RAS_METHOD_STRING_LENGTH_KEYWORD "METHODSTRARGLEN" |
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.
maybe "MAXSTRINGLENGTHINMETHODPARAMETER"
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.
then RAS_MAX_STRING_LENGTH_IN_METHOD_PARAMTER
@keithc-ca Please review these changes |
4a285f2
to
0b4ffe9
Compare
66dcb5c
to
50e2f3d
Compare
Jenkins test sanity.functional amac jdk11 |
The output of For the record, testing is underway at https://openj9-jenkins.osuosl.org/job/PullRequest-OpenJ9/6690. |
runtime/rastrace/method_trigger.c
Outdated
return OMR_ERROR_NONE; | ||
} | ||
err: | ||
vaReportJ9VMCommandLineError(PORTLIB, "maxstringlength takes an integer value from 1 to %d", RAS_MAX_STRING_LENGTH_LIMIT); |
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.
The lower bound is 0, not 1.
422c017
to
956106f
Compare
The changes reflect the feature request eclipse-openj9#16416. Adding cmdline option to specify string argument length. -Xtrace:maxstringlength=[1-128] maxstringlength takes an unsigned integer value from 1 to 128 If maxstringlength = 0 or unspecified, default to address printing. Other invalid inputs result in the input error. There will be subsequent PR for tests (part 3). Signed-off-by: Nick Kamal <[email protected]>
3dd98d3
to
686f6ce
Compare
jenkins test sanity alinux jdk21 |
jenkins test sanity alinux64 jdk21 |
jenkins test sanity win jdk8 |
jenkins test sanity alinux64 jdk21 |
jenkins test sanity win jdk8 |
jenkins test sanity plinux jdk8 |
The changes reflect the feature request eclipse-openj9#16416 - part 3 following eclipse-openj9#20662 cmdline tests for -Xtrace:maxstringlength Closes: eclipse-openj9#16416 Signed-off-by: Nick Kamal [email protected]
The changes reflect the feature request eclipse-openj9#16416 - part 3 following eclipse-openj9#20662 cmdline tests for -Xtrace:maxstringlength Closes: eclipse-openj9#16416 Signed-off-by: Nick Kamal [email protected]
The changes reflect the feature request eclipse-openj9#16416 - part 3 following eclipse-openj9#20662 cmdline tests for -Xtrace:maxstringlength Closes: eclipse-openj9#16416 Signed-off-by: Nick Kamal [email protected]
The changes reflect the feature request #16416.
Adding cmdline option to specify string argument length.
-Xtrace:maxstringlength=[0-128]
maxstringlength takes an unsigned integer value from 0 to 128
If maxstringlength = 0 or unspecified, default to address printing.
Other invalid inputs result in the input error.
There will be subsequent PR for tests (part 3).
Signed-off-by: Nick Kamal <[email protected]>