mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-19 23:48:50 +00:00
8260338: Some fields in HaltNode is not cloned
Reviewed-by: xliu, neliasso, thartmann
This commit is contained in:
parent
af155fc068
commit
09489e28bd
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2015, 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
|
||||
@ -74,6 +74,7 @@ HaltNode::HaltNode(Node* ctrl, Node* frameptr, const char* halt_reason, bool rea
|
||||
}
|
||||
|
||||
const Type *HaltNode::bottom_type() const { return Type::BOTTOM; }
|
||||
uint HaltNode::size_of() const { return sizeof(*this); }
|
||||
|
||||
//------------------------------Ideal------------------------------------------
|
||||
Node *HaltNode::Ideal(PhaseGVN *phase, bool can_reshape) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2019, 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
|
||||
@ -50,6 +50,8 @@ public:
|
||||
//------------------------------HaltNode---------------------------------------
|
||||
// Throw an exception & die
|
||||
class HaltNode : public Node {
|
||||
protected:
|
||||
virtual uint size_of() const;
|
||||
public:
|
||||
const char* _halt_reason;
|
||||
bool _reachable;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user