8278384: Bytecodes::result_type() for arraylength returns T_VOID instead of T_INT
Reviewed-by: lfoltan, dholmes
This commit is contained in:
parent
e45e0b05b9
commit
769f14db84
src/hotspot/share/interpreter
@ -1029,7 +1029,6 @@ int ExceptionMessageBuilder::do_instruction(int bci) {
|
||||
break;
|
||||
|
||||
case Bytecodes::_arraylength:
|
||||
// The return type of arraylength is wrong in the bytecodes table (T_VOID).
|
||||
stack->pop(1);
|
||||
stack->push(bci, T_INT);
|
||||
break;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2021, 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
|
||||
@ -471,7 +471,7 @@ void Bytecodes::initialize() {
|
||||
def(_new , "new" , "bkk" , NULL , T_OBJECT , 1, true );
|
||||
def(_newarray , "newarray" , "bc" , NULL , T_OBJECT , 0, true );
|
||||
def(_anewarray , "anewarray" , "bkk" , NULL , T_OBJECT , 0, true );
|
||||
def(_arraylength , "arraylength" , "b" , NULL , T_VOID , 0, true );
|
||||
def(_arraylength , "arraylength" , "b" , NULL , T_INT , 0, true );
|
||||
def(_athrow , "athrow" , "b" , NULL , T_VOID , -1, true );
|
||||
def(_checkcast , "checkcast" , "bkk" , NULL , T_OBJECT , 0, true );
|
||||
def(_instanceof , "instanceof" , "bkk" , NULL , T_INT , 0, true );
|
||||
|
Loading…
x
Reference in New Issue
Block a user