Skip to content

Commit

Permalink
Merge pull request #2429 from gacholio/warnfix
Browse files Browse the repository at this point in the history
Fix warning introduced in #2409
  • Loading branch information
gacholio committed Jul 18, 2018
2 parents 1cb7fe4 + 7ee0e3e commit 4dd67e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/util/hshelp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ fixVTables_forNormalRedefine(J9VMThread *currentThread, J9HashTable *classPairs,
Trc_hshelp_fixVTables_Search(currentThread, i,
classPair->replacementClass.ramClass ? classPair->replacementClass.ramClass : classPair->originalRAMClass,
methodPair.oldMethod, getMethodName(methodPair.oldMethod),
vm->jitConfig ? oldJitVTable[-i] : 0, vm->jitConfig ? newJitVTable[-i] : 0);
vm->jitConfig ? oldJitVTable[0 - i] : 0, vm->jitConfig ? newJitVTable[0 - i] : 0);
#endif

result = hashTableFind(methodPairs, &methodPair);
Expand All @@ -1249,10 +1249,10 @@ fixVTables_forNormalRedefine(J9VMThread *currentThread, J9HashTable *classPairs,
* We do not need to remap the order here because we're making the newVTable/newJitVTable
* have the same order of the oldVTable/oldJitVTable.
*/
newJitVTable[-i] = oldJitVTable[-i];
newJitVTable[0 - i] = oldJitVTable[0 - i];
Trc_hshelp_fixVTables_jitVTableReplace(currentThread, i);
} else {
vmFuncs->fillJITVTableSlot(currentThread, &newJitVTable[-i], result->newMethod);
vmFuncs->fillJITVTableSlot(currentThread, &newJitVTable[0 - i], result->newMethod);
}
}
#endif
Expand Down

0 comments on commit 4dd67e3

Please sign in to comment.