Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Commit 9d4171f

Browse files
committed
8260338: Some fields in HaltNode is not cloned
Reviewed-by: vlivanov, kvn Backport-of: 09489e28bd2a5c5d09e5a651c6889fc1179629e5
1 parent 625a384 commit 9d4171f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/hotspot/share/opto/rootnode.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* 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
7474
}
7575

7676
const Type *HaltNode::bottom_type() const { return Type::BOTTOM; }
77+
uint HaltNode::size_of() const { return sizeof(*this); }
7778

7879
//------------------------------Ideal------------------------------------------
7980
Node *HaltNode::Ideal(PhaseGVN *phase, bool can_reshape) {

src/hotspot/share/opto/rootnode.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -50,6 +50,8 @@ class RootNode : public LoopNode {
5050
//------------------------------HaltNode---------------------------------------
5151
// Throw an exception & die
5252
class HaltNode : public Node {
53+
protected:
54+
virtual uint size_of() const;
5355
public:
5456
const char* _halt_reason;
5557
bool _reachable;

0 commit comments

Comments
 (0)