Skip to content

Commit

Permalink
Add TR_J2IVirtualThunkPointer relocation kind
Browse files Browse the repository at this point in the history
This kind can be used in downstream projects to describe a relocation
for JIT-compiled code that contains a pointer to a code sequence that
transitions control into an interpreter.

Signed-off-by: Devin Papineau <devinmp@ca.ibm.com>
  • Loading branch information
jdmpapin committed Sep 14, 2018
1 parent f29d158 commit 51acd4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion compiler/codegen/Relocation.cpp
Expand Up @@ -421,7 +421,8 @@ const char *TR::ExternalRelocation::_externalRelocationTargetKindNames[TR_NumExt
"TR_NativeMethodRelative (57)",
"TR_ArbitraryClassAddress (58)",
"TR_DebugCounter (59)",
"TR_ClassUnloadAssumption (60)"
"TR_ClassUnloadAssumption (60)",
"TR_J2IVirtualThunkPointer (61)",
};

uintptr_t TR::ExternalRelocation::_globalValueList[TR_NumGlobalValueItems] =
Expand Down
3 changes: 2 additions & 1 deletion compiler/runtime/Runtime.hpp
Expand Up @@ -355,7 +355,8 @@ typedef enum
TR_ArbitraryClassAddress = 58,
TR_DebugCounter = 59,
TR_ClassUnloadAssumption = 60, // this should not be used in AOT relocations
TR_NumExternalRelocationKinds = 61,
TR_J2IVirtualThunkPointer = 61,
TR_NumExternalRelocationKinds = 62,
TR_ExternalRelocationTargetKindMask = 0xff,
} TR_ExternalRelocationTargetKind;

Expand Down

0 comments on commit 51acd4e

Please sign in to comment.