Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8260338: Some fields in HaltNode is not cloned
Reviewed-by: xliu, neliasso, thartmann
  • Loading branch information
YaSuenag committed Jan 25, 2021
1 parent af155fc commit 09489e28bd2a5c5d09e5a651c6889fc1179629e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
@@ -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 @@ class RootNode : public LoopNode {
//------------------------------HaltNode---------------------------------------
// Throw an exception & die
class HaltNode : public Node {
protected:
virtual uint size_of() const;
public:
const char* _halt_reason;
bool _reachable;

0 comments on commit 09489e2

Please sign in to comment.