Skip to content

Commit

Permalink
Merge pull request eclipse-openj9#32 from runtimes/revert-18-ibm_sdk
Browse files Browse the repository at this point in the history
Revert "Compile error fix"
  • Loading branch information
gacholio authored and GitHub Enterprise committed Feb 15, 2018
2 parents 813a290 + 5e5d02e commit 8e1d230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/util/mthutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,6 @@ UDATA
getITableIndexForMethod(J9Method * method, J9Class *targetInterface)
{
J9Class *methodClass = J9_CLASS_FROM_METHOD(method);
const UDATA methodCount = methodClass->romClass->romMethodCount;
const UDATA methodIndex = method - methodClass->ramMethods;
UDATA skip = 0;
/* NULL targetInterface implies searching only within methodClass, which may be an obsolete class.
* This works because the methods for the local interface always appear first in the iTable, with
Expand Down Expand Up @@ -650,6 +648,8 @@ getITableIndexForMethod(J9Method * method, J9Class *targetInterface)
* ramMethod++;
* }
*/
const UDATA methodCount = methodClass->romClass->romMethodCount;
const UDATA methodIndex = method - methodClass->ramMethods;
if (methodIndex < methodCount) {
return methodIndex + skip;
}
Expand Down

0 comments on commit 8e1d230

Please sign in to comment.