equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 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. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
121 } |
121 } |
122 list.add(java.lang.Throwable.class); |
122 list.add(java.lang.Throwable.class); |
123 list.add(java.lang.Error.class); |
123 list.add(java.lang.Error.class); |
124 Logger.log(LogTag.JFR_SYSTEM, LogLevel.INFO, "Retransformed JDK classes"); |
124 Logger.log(LogTag.JFR_SYSTEM, LogLevel.INFO, "Retransformed JDK classes"); |
125 jvm.retransformClasses(list.toArray(new Class<?>[list.size()])); |
125 jvm.retransformClasses(list.toArray(new Class<?>[list.size()])); |
|
126 } catch (IllegalStateException ise) { |
|
127 throw ise; |
126 } catch (Exception e) { |
128 } catch (Exception e) { |
127 Logger.log(LogTag.JFR_SYSTEM, LogLevel.WARN, "Could not add instrumentation for JDK events. " + e.getMessage()); |
129 Logger.log(LogTag.JFR_SYSTEM, LogLevel.WARN, "Could not add instrumentation for JDK events. " + e.getMessage()); |
128 } |
130 } |
129 } |
131 } |
130 |
132 |