src/share/vm/prims/jvmtiClassFileReconstituter.cpp

changeset 1920
ab102d5d923e
parent 1279
bd02caa94611
child 1934
e9ff18c4ace7
     1.1 --- a/src/share/vm/prims/jvmtiClassFileReconstituter.cpp	Fri May 21 02:59:24 2010 -0700
     1.2 +++ b/src/share/vm/prims/jvmtiClassFileReconstituter.cpp	Sun May 23 01:38:26 2010 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright 2005-2009 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 + * Copyright 2005-2010 Sun Microsystems, Inc.  All Rights Reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -638,7 +638,7 @@
    1.11  
    1.12      // length of bytecode (mnemonic + operands)
    1.13      address bcp = bs.bcp();
    1.14 -    int len = bs.next_bcp() - bcp;
    1.15 +    int     len = bs.instruction_size();
    1.16      assert(len > 0, "length must be > 0");
    1.17  
    1.18      // copy the bytecodes

mercurial