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
Refactor JITServer AOT cache reading #16228
Conversation
fdb0a06
to
12c3592
Compare
Attn @mpirvu. |
12c3592
to
3d2a892
Compare
I'm still testing this, but something appears to be wrong with |
Oh, of course, I use the data of the freshly-allocated record before |
3d57f36
to
b55a0cb
Compare
I've also unified the |
b55a0cb
to
cf13cdf
Compare
I believe this is the outstanding refactoring done. If there's anything that I've forgotten, let me know. |
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.
Looks good overall. I have a few inline questions.
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 overall except a few minor things (see inline comments).
There are still a few more refactoring opportunities, but they can be addressed later:
SerializedAOTMethod
andCachedAOTMethod
could be added to theAOTSerializationRecord
andAOTCacheRecord
class hierarchies.- The combination of a key-record map, list head and tail, etc. for each record type in
JITServerAOTCache
could be turned into a single struct template. - Lists of fields per record type could be replaced with arrays indexed by record type in some places.
613a184
to
a9d76fc
Compare
I believe that is all of the comments addressed. |
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 except one small change below.
Signed-off-by: Christian Despres <despresc@ibm.com>
Signed-off-by: Christian Despres <despresc@ibm.com>
a9d76fc
to
be39468
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.
LGTM
jenkins test sanity plinuxjit,xlinuxjit,zlinuxjit jdk17 |
jenkins test sanity plinuxjit jdk17 |
This PR cleans up some of the JITServer AOT cache reading code from the recent #15949.
CachedAOTMethod
) have been consolidated into a singleAOTCacheRecord::readRecord
function template.Related: #16109