< prev index next >

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot/HotSpotMethodDataAccessor.java

Print this page
*** 55,11 ***
          return tag;
      }
  
      static int readTag(HotSpotVMConfig config, HotSpotMethodData data, int position) {
          final int tag = data.readUnsignedByte(position, config.dataLayoutTagOffset);
!         assert tag >= config.dataLayoutNoTag && tag <= config.dataLayoutSpeculativeTrapDataTag : "profile data tag out of bounds: " + tag;
          return tag;
      }
  
      /**
       * Returns the BCI stored in the LayoutData header.
--- 55,11 ---
          return tag;
      }
  
      static int readTag(HotSpotVMConfig config, HotSpotMethodData data, int position) {
          final int tag = data.readUnsignedByte(position, config.dataLayoutTagOffset);
!         assert tag >= config.dataLayoutNoTag && tag <= config.dataLayoutACmpDataTag : "profile data tag out of bounds: " + tag;
          return tag;
      }
  
      /**
       * Returns the BCI stored in the LayoutData header.
< prev index next >