-
Notifications
You must be signed in to change notification settings - Fork 720
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
Store classes not worth remembering per client for JITServer #10682
Conversation
be45c7c
to
1977a74
Compare
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.
It looks mostly ok. Please see the inline suggestions
Not sure if this can be used to determine the number of elements in the array, since the array is defined in cpp while we need this definition in hpp:
|
d36c0ff
to
a1a9de4
Compare
@mpirvu other than replacing vector with array, I addressed all comments. |
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.
LGTM
We could use an embedded array if we knew the size. If the size of the original array cannot be statically determined, an workaround is to declare it as '2' in the hpp file and then to add a check at compile time that the number of entries in the cpp is actually 2. I'll let @dsouzai decide if he is ok with that change |
Yeah looks ok to me.
Yeah I'm ok with this since it'll be a compile time static assert, so it will at least get caught pretty early on. |
a14b7a9
to
b56aec7
Compare
@mpirvu changed vector to static array and removed the fix to front-end for |
@@ -637,9 +641,9 @@ class SymbolValidationManager | |||
|
|||
struct SystemClassNotWorthRemembering | |||
{ | |||
const char * const _className; | |||
char *_className; |
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.
Can't we leave the first const
here. The second one refers to the _className
being immutable, but the first one refers to the string of characters being immutable.
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.
True. I can push the change once the tests pass.
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 tests on Power take very long for some reason, but on x86 they passed. You could do this change now.
jenkins test sanity plinuxjit,xlinuxjit jdk11 |
PR eclipse-openj9#10644 added a static array of classes not worth remembering to Symbol Validation Manager. JITServer, however, requires this array to be stored on a per client bases, since pointers to J9 classes are different between clients. Signed-off-by: Dmitry Ten <Dmitry.Ten@ibm.com>
b56aec7
to
355e038
Compare
Pushed |
jenkins test sanity plinuxjit,xlinuxjit jdk11 |
Testing on x86 was successful. Testing on Power seems to hand for some reason even though all the tests have passed. I don't know what the infra is waiting for. |
PR #10644 added a static array of classes not worth remembering
to Symbol Validation Manager. JITServer, however, requires this array
to be stored on a per client bases, since pointers to J9 classes
are different between clients.