src/hotspot/share/runtime/os.cpp
changeset 48787 7638bf98a312
parent 48153 cfa2c43e58c2
child 48808 2b0b7f222800
equal deleted inserted replaced
48786:cc231bd80c8b 48787:7638bf98a312
     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