equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2018, 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. |
1085 st->print_cr(INTPTR_FORMAT " is a weak global jni handle", p2i(addr)); |
1085 st->print_cr(INTPTR_FORMAT " is a weak global jni handle", p2i(addr)); |
1086 return; |
1086 return; |
1087 } |
1087 } |
1088 #ifndef PRODUCT |
1088 #ifndef PRODUCT |
1089 // we don't keep the block list in product mode |
1089 // we don't keep the block list in product mode |
1090 if (JNIHandleBlock::any_contains((jobject) addr)) { |
1090 if (JNIHandles::is_local_handle((jobject) addr)) { |
1091 st->print_cr(INTPTR_FORMAT " is a local jni handle", p2i(addr)); |
1091 st->print_cr(INTPTR_FORMAT " is a local jni handle", p2i(addr)); |
1092 return; |
1092 return; |
1093 } |
1093 } |
1094 #endif |
1094 #endif |
1095 |
1095 |