8200288: [SPARC] "assert(!(is_cti(prev) && is_cti(insn))) failed: CTI-CTI not allowed"
authorphedlin
Wed, 30 May 2018 16:10:21 +0200
changeset 50306 ed7605e8675f
parent 50305 02934b0d661b
child 50307 ba1b490901d4
8200288: [SPARC] "assert(!(is_cti(prev) && is_cti(insn))) failed: CTI-CTI not allowed" Reviewed-by: neliasso, kvn
src/hotspot/cpu/sparc/assembler_sparc.hpp
--- a/src/hotspot/cpu/sparc/assembler_sparc.hpp	Wed May 30 14:46:28 2018 +0200
+++ b/src/hotspot/cpu/sparc/assembler_sparc.hpp	Wed May 30 16:10:21 2018 +0200
@@ -783,8 +783,10 @@
   void flush() {
 #ifdef VALIDATE_PIPELINE
     assert(_delay_state == NoDelay, "Ending code with a delay-slot.");
+#ifdef COMPILER2
     validate_no_pipeline_hazards();
 #endif
+#endif
     AbstractAssembler::flush();
   }