OpenJDK / jdk / jdk
changeset 56224:d8f60e5bb4a6
8230711: ConnectionGraph::unique_java_object(Node* N) return NULL if n is not in the CG
Reviewed-by: mdoerr
author | mbaesken |
---|---|
date | Fri, 06 Sep 2019 16:15:11 +0200 |
parents | 65cad575ace3 |
children | 3fee0e6b54f5 |
files | src/hotspot/share/opto/escape.cpp |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/hotspot/share/opto/escape.cpp Tue Sep 10 14:52:53 2019 +0800 +++ b/src/hotspot/share/opto/escape.cpp Fri Sep 06 16:15:11 2019 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2019, 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 @@ -2125,6 +2125,9 @@ return NULL; } PointsToNode* ptn = ptnode_adr(idx); + if (ptn == NULL) { + return NULL; + } if (ptn->is_JavaObject()) { return ptn->as_JavaObject(); }