8230711: ConnectionGraph::unique_java_object(Node* N) return NULL if n is not in the CG

Mon, 30 Mar 2020 17:55:01 +0200

author
mbaesken
date
Mon, 30 Mar 2020 17:55:01 +0200
changeset 9951
2f07f8d27acf
parent 9950
f3ceb2e8bd21
child 9952
19056c781208

8230711: ConnectionGraph::unique_java_object(Node* N) return NULL if n is not in the CG
Reviewed-by: mdoerr

src/share/vm/opto/escape.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/opto/escape.cpp	Mon Mar 09 12:54:53 2020 +0000
     1.2 +++ b/src/share/vm/opto/escape.cpp	Mon Mar 30 17:55:01 2020 +0200
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -2062,6 +2062,9 @@
    1.11      return NULL;
    1.12    }
    1.13    PointsToNode* ptn = ptnode_adr(idx);
    1.14 +  if (ptn == NULL) {
    1.15 +    return NULL;
    1.16 +  }
    1.17    if (ptn->is_JavaObject()) {
    1.18      return ptn->as_JavaObject();
    1.19    }

mercurial