--- old/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/interpreter/Bytecodes.java 2018-04-26 22:42:05.304000000 +0530 +++ new/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/interpreter/Bytecodes.java 2018-04-26 22:42:05.080000000 +0530 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -274,9 +274,15 @@ public static final int _fast_aldc_w = 231; public static final int _return_register_finalizer = 232; public static final int _invokehandle = 233; - public static final int _shouldnotreachhere = 234; // For debugging - public static final int number_of_codes = 235; + // Bytecodes rewritten at CDS dump time + public static final int _nofast_getfield = 234; + public static final int _nofast_putfield = 235; + public static final int _nofast_aload_0 = 236; + public static final int _nofast_iload = 237; + public static final int _shouldnotreachhere = 238; // For debugging + + public static final int number_of_codes = 239; // Flag bits derived from format strings, can_trap, can_rewrite, etc.: // semantic flags: @@ -807,6 +813,12 @@ // special handling of signature-polymorphic methods def(_invokehandle , "invokehandle" , "bJJ" , null , BasicType.getTIllegal(), -1, true, _invokevirtual ); + // CDS specific. Bytecodes rewritten at CDS dump time + def(_nofast_getfield , "_nofast_getfield" , "bJJ" , null , BasicType.getTIllegal() , 0, true, _getfield ); + def(_nofast_putfield , "_nofast_putfield" , "bJJ" , null , BasicType.getTIllegal() ,-2, true, _putfield ); + def(_nofast_aload_0 , "_nofast_aload_0" , "b" , null , BasicType.getTIllegal() , 1, true, _aload_0 ); + def(_nofast_iload , "_nofast_iload" , "bi" , null , BasicType.getTIllegal() , 1, false, _iload ); + def(_shouldnotreachhere , "_shouldnotreachhere" , "b" , null , BasicType.getTVoid() , 0, false); if (Assert.ASSERTS_ENABLED) {