Skip to content

Eliminate the VM_getObjectClassFromKnownObjectIndex message#23478

Open
mpirvu wants to merge 1 commit intoeclipse-openj9:masterfrom
mpirvu:jitserver-knot
Open

Eliminate the VM_getObjectClassFromKnownObjectIndex message#23478
mpirvu wants to merge 1 commit intoeclipse-openj9:masterfrom
mpirvu:jitserver-knot

Conversation

@mpirvu
Copy link
Contributor

@mpirvu mpirvu commented Mar 10, 2026

The message VM_getObjectClassFromKnownObjectIndex is sent by the server from the getObjectClassFromKnownObjectIndex(comp, knot_index) frontend call to retrieve the class of the object stored in the known object table at the given index. In many cases the known object table has this information already cached.
This commit reimplements the frontend query
getObjectClassFromKnownObjectIndex(TR::Compilation *, TR::KnownObjectTable::Index) so that it calls getObjClassInfoFromKnotIndex() which in turn takes advantage of the existing cache in the known object table.

@mpirvu mpirvu requested a review from dsouzai as a code owner March 10, 2026 00:03
@mpirvu mpirvu added the comp:jitserver Artifacts related to JIT-as-a-Service project label Mar 10, 2026
@mpirvu mpirvu marked this pull request as draft March 10, 2026 00:04
@mpirvu
Copy link
Contributor Author

mpirvu commented Mar 10, 2026

Converted to draft until I test it more thoroughly.

@mpirvu mpirvu force-pushed the jitserver-knot branch 2 times, most recently from fb84834 to 4e2ffa9 Compare March 10, 2026 17:35
@mpirvu mpirvu marked this pull request as ready for review March 10, 2026 17:36
@github-project-automation github-project-automation bot moved this to In progress in JIT as a Service Mar 10, 2026
@mpirvu
Copy link
Contributor Author

mpirvu commented Mar 10, 2026

@dsouzai could you please review/merge this PR? Thanks.

@mpirvu
Copy link
Contributor Author

mpirvu commented Mar 11, 2026

jenkins test sanity plinuxjit,xlinuxjit,zlinuxjit,alinux64jit jdk21

The message VM_getObjectClassFromKnownObjectIndex is sent by the server
from the getObjectClassFromKnownObjectIndex(comp, knot_index) frontend
call to retrieve the class of the object stored in the known object
table at the given index. In many cases the known object table has
this information already cached.
This commit reimplements the frontend query
`getObjectClassFromKnownObjectIndex(TR::Compilation *, TR::KnownObjectTable::Index)`
so that it calls getObjClassInfoFromKnotIndex() which in turn
takes advantage of the existing cache in the known object table.

Signed-off-by: Marius Pirvu <mpirvu@ca.ibm.com>
@mpirvu
Copy link
Contributor Author

mpirvu commented Mar 11, 2026

jenkins test sanity plinuxjit,xlinuxjit,zlinuxjit,alinux64jit jdk21

@dsouzai dsouzai self-assigned this Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:jitserver Artifacts related to JIT-as-a-Service project

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

2 participants