Skip to content

Commit

Permalink
Merge pull request #20757 from luke-li-2003/BypassVMAccessJITServer
Browse files Browse the repository at this point in the history
Bypass Code Requiring VM Read at JITServer
  • Loading branch information
mpirvu authored Dec 5, 2024
2 parents ba6e625 + 567c733 commit 70dd02e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runtime/compiler/optimizer/J9ValuePropagation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2130,6 +2130,11 @@ J9::ValuePropagation::constrainRecognizedMethod(TR::Node *node)
#if defined(J9VM_OPT_METHOD_HANDLE)
case TR::java_lang_invoke_PrimitiveHandle_initializeClassIfRequired:
{
// The macro J9VMJAVALANGINVOKEPRIMITIVEHANDLE used later
// will access vm information which is not available on the JITServer,
// bypass in this case to prevent an invalid class pointer being retrieved
if (comp()->isOutOfProcessCompilation())
break;
TR::Node* mh = node->getArgument(0);
bool mhConstraintGlobal;
TR::VPConstraint* mhConstraint = getConstraint(mh, mhConstraintGlobal);
Expand Down

0 comments on commit 70dd02e

Please sign in to comment.