src/hotspot/share/utilities/exceptions.cpp
changeset 53745 a535ba736cab
parent 50516 77f9fece2f19
child 53874 b2fb6f782d84
equal deleted inserted replaced
53744:5b78f051912b 53745:a535ba736cab
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 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.
   409     // in JVMS 6.5.
   409     // in JVMS 6.5.
   410     if (exception->is_a(SystemDictionary::Error_klass())) {
   410     if (exception->is_a(SystemDictionary::Error_klass())) {
   411       // Pass through an Error, including BootstrapMethodError, any other form
   411       // Pass through an Error, including BootstrapMethodError, any other form
   412       // of linkage error, or say ThreadDeath/OutOfMemoryError
   412       // of linkage error, or say ThreadDeath/OutOfMemoryError
   413       if (TraceMethodHandles) {
   413       if (TraceMethodHandles) {
   414         tty->print_cr("[constant/invoke]dynamic passes through an Error for " INTPTR_FORMAT, p2i((void *)exception));
   414         tty->print_cr("bootstrap method invocation wraps BSME around " INTPTR_FORMAT, p2i((void *)exception));
   415         exception->print();
   415         exception->print();
   416       }
   416       }
   417       return;
   417       return;
   418     }
   418     }
   419 
   419