src/hotspot/share/ci/ciExceptionHandler.cpp
changeset 59056 15936b142f86
parent 49449 ef5d5d343e2a
equal deleted inserted replaced
59055:57ad70bcf06c 59056:15936b142f86
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 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.
    39   VM_ENTRY_MARK;
    39   VM_ENTRY_MARK;
    40   assert(!is_catch_all(), "bad index");
    40   assert(!is_catch_all(), "bad index");
    41   if (_catch_klass == NULL) {
    41   if (_catch_klass == NULL) {
    42     bool will_link;
    42     bool will_link;
    43     assert(_loading_klass->get_instanceKlass()->is_linked(), "must be linked before accessing constant pool");
    43     assert(_loading_klass->get_instanceKlass()->is_linked(), "must be linked before accessing constant pool");
    44     constantPoolHandle cpool(_loading_klass->get_instanceKlass()->constants());
    44     constantPoolHandle cpool(THREAD, _loading_klass->get_instanceKlass()->constants());
    45     ciKlass* k = CURRENT_ENV->get_klass_by_index(cpool,
    45     ciKlass* k = CURRENT_ENV->get_klass_by_index(cpool,
    46                                                  _catch_klass_index,
    46                                                  _catch_klass_index,
    47                                                  will_link,
    47                                                  will_link,
    48                                                  _loading_klass);
    48                                                  _loading_klass);
    49     if (!will_link && k->is_loaded()) {
    49     if (!will_link && k->is_loaded()) {