equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
2123 uint idx = n->_idx; |
2123 uint idx = n->_idx; |
2124 if (idx >= nodes_size()) { |
2124 if (idx >= nodes_size()) { |
2125 return NULL; |
2125 return NULL; |
2126 } |
2126 } |
2127 PointsToNode* ptn = ptnode_adr(idx); |
2127 PointsToNode* ptn = ptnode_adr(idx); |
|
2128 if (ptn == NULL) { |
|
2129 return NULL; |
|
2130 } |
2128 if (ptn->is_JavaObject()) { |
2131 if (ptn->is_JavaObject()) { |
2129 return ptn->as_JavaObject(); |
2132 return ptn->as_JavaObject(); |
2130 } |
2133 } |
2131 assert(ptn->is_LocalVar(), "sanity"); |
2134 assert(ptn->is_LocalVar(), "sanity"); |
2132 // Check all java objects it points to. |
2135 // Check all java objects it points to. |