diff --git a/runtime/compiler/ilgen/IlGenerator.cpp b/runtime/compiler/ilgen/IlGenerator.cpp index c5a97436ebe..9d88302b6b9 100644 --- a/runtime/compiler/ilgen/IlGenerator.cpp +++ b/runtime/compiler/ilgen/IlGenerator.cpp @@ -262,7 +262,7 @@ bool TR_J9ByteCodeIlGenerator::internalGenIL() fej9()->stackWalkerMaySkipFrames(caller1->getPersistentIdentifier(),callerClass1)); - if (doIt) + if (doIt && !comp()->compileRelocatableCode()) { if (recognizedMethod == TR::java_lang_ClassLoader_callerClassLoader )