hotspot/src/share/vm/interpreter/bytecodes.cpp
changeset 5693 3015c564fcbc
parent 5688 9052dc91ea67
child 5702 201c5cde25bb
equal deleted inserted replaced
5692:5ab61a141f2f 5693:3015c564fcbc
    84       // only return len if it can be represented as a positive int;
    84       // only return len if it can be represented as a positive int;
    85       // return -1 otherwise
    85       // return -1 otherwise
    86       return (len > 0 && len == (int)len) ? len : -1;
    86       return (len > 0 && len == (int)len) ? len : -1;
    87     }
    87     }
    88   }
    88   }
       
    89   // Note: Length functions must return <=0 for invalid bytecodes.
    89   return 0;
    90   return 0;
    90 }
    91 }
    91 
    92 
    92 // At a breakpoint instruction, this returns the breakpoint's length,
    93 // At a breakpoint instruction, this returns the breakpoint's length,
    93 // otherwise, it's the same as special_length_at().  This is used by
    94 // otherwise, it's the same as special_length_at().  This is used by