Skip to content

Commit

Permalink
Remove JITServer runFEMacro_derefUintptrjPtr API
Browse files Browse the repository at this point in the history
This messageType has been eliminated by the JITServer walkReferenceChain routine.

Signed-off-by: Harry Yu <harryyu1994@gmail.com>
  • Loading branch information
harryyu1994 committed Jan 14, 2020
1 parent d475633 commit 42f4a74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
12 changes: 2 additions & 10 deletions runtime/compiler/control/JITClientCompilationThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2063,14 +2063,6 @@ handleServerMessage(JITServer::ClientStream *client, TR_J9VM *fe, JITServer::Mes
client->write(response, ptr);
}
break;
case MessageType::runFEMacro_derefUintptrjPtr:
{
// should not be used anymore
TR::VMAccessCriticalSection deref(fe);
compInfoPT->updateLastLocalGCCounter();
client->write(response, *std::get<0>(client->getRecvData<uintptrj_t*>()));
}
break;
case MessageType::runFEMacro_invokeILGenMacrosInvokeExactAndFixup:
{
auto recv = client->getRecvData<uintptrj_t*, std::vector<uintptrj_t> >();
Expand Down Expand Up @@ -2398,7 +2390,7 @@ handleServerMessage(JITServer::ClientStream *client, TR_J9VM *fe, JITServer::Mes
uintptrj_t receiverHandle = *std::get<0>(recv);
std::vector<uintptrj_t> listOfOffsets = std::get<1>(recv);
uintptrj_t array = JITServerHelpers::walkReferenceChainWithOffsets(fe, listOfOffsets, receiverHandle);
int32_t arrayLength = (int32_t)fej9->getArrayLengthInElements(array);
int32_t arrayLength = (int32_t)fe->getArrayLengthInElements(array);
client->write(response, arrayLength);
}
break;
Expand All @@ -2410,7 +2402,7 @@ handleServerMessage(JITServer::ClientStream *client, TR_J9VM *fe, JITServer::Mes
uintptrj_t fieldOffset = std::get<1>(recv);
std::vector<uintptrj_t> listOfOffsets = std::get<2>(recv);
uintptrj_t baseObject = JITServerHelpers::walkReferenceChainWithOffsets(fe, listOfOffsets, receiverHandle);
int32_t result = fej9->getInt32FieldAt(baseObject, fieldOffset);;
int32_t result = fe->getInt32FieldAt(baseObject, fieldOffset);
client->write(response, result);
}
break;
Expand Down
1 change: 0 additions & 1 deletion runtime/compiler/net/protos/compile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ enum MessageType
runFEMacro_invokeILGenMacrosParameterCount = 717;
runFEMacro_invokeILGenMacrosArrayLength = 718;
runFEMacro_invokeILGenMacrosGetField = 719;
runFEMacro_derefUintptrjPtr = 720;

// for JITServerPersistentCHTable
CHTable_getAllClassInfo = 800;
Expand Down

0 comments on commit 42f4a74

Please sign in to comment.