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. |
68 if (addr.pc() == NULL) { |
68 if (addr.pc() == NULL) { |
69 assert(false, "NULL pc from signal handler!"); |
69 assert(false, "NULL pc from signal handler!"); |
70 return false; |
70 return false; |
71 } |
71 } |
72 |
72 |
73 #if INCLUDE_CDS |
73 if (MetaspaceShared::is_in_trampoline_frame(addr.pc())) { |
74 if (UseSharedSpaces && MetaspaceShared::is_in_shared_region(addr.pc(), MetaspaceShared::md)) { |
|
75 // In the middle of a trampoline call. Bail out for safety. |
74 // In the middle of a trampoline call. Bail out for safety. |
76 // This happens rarely so shouldn't affect profiling. |
75 // This happens rarely so shouldn't affect profiling. |
77 return false; |
76 return false; |
78 } |
77 } |
79 #endif |
|
80 |
78 |
81 // If sp and fp are nonsense just leave them out |
79 // If sp and fp are nonsense just leave them out |
82 |
80 |
83 if (!jt->on_local_stack((address)ret_sp)) { |
81 if (!jt->on_local_stack((address)ret_sp)) { |
84 ret_sp = NULL; |
82 ret_sp = NULL; |