equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2017, 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. |
76 if (addr.pc() == NULL || ret_sp == NULL) { |
76 if (addr.pc() == NULL || ret_sp == NULL) { |
77 // ucontext wasn't useful |
77 // ucontext wasn't useful |
78 return false; |
78 return false; |
79 } |
79 } |
80 |
80 |
81 #if INCLUDE_CDS |
81 if (MetaspaceShared::is_in_trampoline_frame(addr.pc())) { |
82 if (UseSharedSpaces && MetaspaceShared::is_in_shared_region(addr.pc(), MetaspaceShared::md)) { |
|
83 // In the middle of a trampoline call. Bail out for safety. |
82 // In the middle of a trampoline call. Bail out for safety. |
84 // This happens rarely so shouldn't affect profiling. |
83 // This happens rarely so shouldn't affect profiling. |
85 return false; |
84 return false; |
86 } |
85 } |
87 #endif |
|
88 |
86 |
89 frame ret_frame(ret_sp, frame::unpatchable, addr.pc()); |
87 frame ret_frame(ret_sp, frame::unpatchable, addr.pc()); |
90 |
88 |
91 // we were running Java code when SIGPROF came in |
89 // we were running Java code when SIGPROF came in |
92 if (isInJava) { |
90 if (isInJava) { |