Skip to content

Commit

Permalink
Add relo type for a pointer to an inlined method
Browse files Browse the repository at this point in the history
The purpose of this relo type is to relocate method pointers that
already exist in the inlining table, as opposed to the TR_MethodPointer
relo type that is used to relocate an arbitrary method pointer.

Signed-off-by: Irwin D'Souza <dsouzai.gh@gmail.com>
  • Loading branch information
dsouzai committed Feb 18, 2021
1 parent 4c44981 commit d84363c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions compiler/codegen/Relocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ const char *TR::ExternalRelocation::_externalRelocationTargetKindNames[TR_NumExt
"TR_InlinedSpecialMethod (105)",
"TR_InlinedAbstractMethod (106)",
"TR_Breakpoint (107)",
"TR_InlinedMethodPointer (108)",
};

uintptr_t TR::ExternalRelocation::_globalValueList[TR_NumGlobalValueItems] =
Expand Down
3 changes: 2 additions & 1 deletion compiler/runtime/Runtime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ typedef enum
TR_InlinedSpecialMethod = 105,
TR_InlinedAbstractMethod = 106,
TR_Breakpoint = 107,
TR_NumExternalRelocationKinds = 108,
TR_InlinedMethodPointer = 108,
TR_NumExternalRelocationKinds = 109,
TR_ExternalRelocationTargetKindMask = 0xff,
} TR_ExternalRelocationTargetKind;

Expand Down

0 comments on commit d84363c

Please sign in to comment.