diff --git a/runtime/vm/CRIUBytecodeInterpreterCompressed.cpp b/runtime/vm/CRIUBytecodeInterpreterCompressed.cpp index 01c52d22b6e..1e7ae779a34 100644 --- a/runtime/vm/CRIUBytecodeInterpreterCompressed.cpp +++ b/runtime/vm/CRIUBytecodeInterpreterCompressed.cpp @@ -22,10 +22,10 @@ #include "j9cfg.h" -#if defined(OMR_GC_COMPRESSED_POINTERS) +#if defined(OMR_GC_COMPRESSED_POINTERS) && defined(J9VM_OPT_CRIU_SUPPORT) #define DO_HOOKS #define OMR_OVERRIDE_COMPRESS_OBJECT_REFERENCES 1 #define LOOP_NAME criuBytecodeLoopCompressed #define INTERPRETER_CLASS VM_CRIUBytecodeInterpreterCompressed #include "BytecodeInterpreter.inc" -#endif /* defined(OMR_GC_COMPRESSED_POINTERS) */ +#endif /* defined(OMR_GC_COMPRESSED_POINTERS) && defined(J9VM_OPT_CRIU_SUPPORT) */ diff --git a/runtime/vm/CRIUBytecodeInterpreterFull.cpp b/runtime/vm/CRIUBytecodeInterpreterFull.cpp index 42ae83730a9..ff88da6e827 100644 --- a/runtime/vm/CRIUBytecodeInterpreterFull.cpp +++ b/runtime/vm/CRIUBytecodeInterpreterFull.cpp @@ -22,10 +22,10 @@ #include "j9cfg.h" -#if defined(OMR_GC_FULL_POINTERS) +#if defined(OMR_GC_FULL_POINTERS) && defined(J9VM_OPT_CRIU_SUPPORT) #define DO_HOOKS #define OMR_OVERRIDE_COMPRESS_OBJECT_REFERENCES 0 #define LOOP_NAME criuBytecodeLoopFull #define INTERPRETER_CLASS VM_CRIUBytecodeInterpreterFull #include "BytecodeInterpreter.inc" -#endif /* defined(OMR_GC_FULL_POINTERS) */ +#endif /* defined(OMR_GC_FULL_POINTERS) && defined(J9VM_OPT_CRIU_SUPPORT) */