8332462: ubsan: c1_ValueStack.hpp:229:49: runtime error: load of value 171, which is not a valid value for type 'bool'
Reviewed-by: chagedorn, mdoerr, thartmann
This commit is contained in:
parent
ce99198e3a
commit
8a49d47cf3
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2024, 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
|
||||
@ -38,6 +38,7 @@ ValueStack::ValueStack(IRScope* scope, ValueStack* caller_state)
|
||||
, _locals(scope->method()->max_locals(), scope->method()->max_locals(), nullptr)
|
||||
, _stack(scope->method()->max_stack())
|
||||
, _locks(nullptr)
|
||||
, _force_reexecute(false)
|
||||
{
|
||||
verify();
|
||||
}
|
||||
@ -50,6 +51,7 @@ ValueStack::ValueStack(ValueStack* copy_from, Kind kind, int bci)
|
||||
, _locals(copy_from->locals_size_for_copy(kind))
|
||||
, _stack(copy_from->stack_size_for_copy(kind))
|
||||
, _locks(copy_from->locks_size() == 0 ? nullptr : new Values(copy_from->locks_size()))
|
||||
, _force_reexecute(false)
|
||||
{
|
||||
switch (kind) {
|
||||
case EmptyExceptionState:
|
||||
|
Loading…
x
Reference in New Issue
Block a user