Skip to content

Commit

Permalink
8332462: ubsan: c1_ValueStack.hpp:229:49: runtime error: load of valu…
Browse files Browse the repository at this point in the history
…e 171, which is not a valid value for type 'bool'

Reviewed-by: chagedorn, mdoerr, thartmann
  • Loading branch information
MBaesken committed May 21, 2024
1 parent ce99198 commit 8a49d47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotspot/share/c1/c1_ValueStack.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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();
}
Expand All @@ -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:
Expand Down

0 comments on commit 8a49d47

Please sign in to comment.