hotspot/src/share/vm/prims/jvmtiRedefineClasses.cpp
changeset 7913 dd096a83bdbb
parent 7436 dbc43da3d512
child 8076 96d498ec7ae1
equal deleted inserted replaced
7901:ea3d83447861 7913:dd096a83bdbb
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
  1456 
  1456 
  1457     bc_length = Bytecodes::length_for(c);
  1457     bc_length = Bytecodes::length_for(c);
  1458     if (bc_length == 0) {
  1458     if (bc_length == 0) {
  1459       // More complicated bytecodes report a length of zero so
  1459       // More complicated bytecodes report a length of zero so
  1460       // we have to try again a slightly different way.
  1460       // we have to try again a slightly different way.
  1461       bc_length = Bytecodes::length_at(bcp);
  1461       bc_length = Bytecodes::length_at(method(), bcp);
  1462     }
  1462     }
  1463 
  1463 
  1464     assert(bc_length != 0, "impossible bytecode length");
  1464     assert(bc_length != 0, "impossible bytecode length");
  1465 
  1465 
  1466     switch (c) {
  1466     switch (c) {