13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 *
24 */
25
26 #include "precompiled.hpp"
27 #include "asm/macroAssembler.inline.hpp"
28 #include "memory/resourceArea.hpp"
29 #include "nativeInst_ppc.hpp"
30 #include "oops/compressedOops.inline.hpp"
31 #include "oops/oop.hpp"
32 #include "runtime/handles.hpp"
33 #include "runtime/orderAccess.inline.hpp"
34 #include "runtime/sharedRuntime.hpp"
35 #include "runtime/stubRoutines.hpp"
36 #include "utilities/ostream.hpp"
37 #ifdef COMPILER1
38 #include "c1/c1_Runtime1.hpp"
39 #endif
40
41 // We use an illtrap for marking a method as not_entrant or zombie iff !UseSIGTRAP
42 // Work around a C++ compiler bug which changes 'this'
43 bool NativeInstruction::is_sigill_zombie_not_entrant_at(address addr) {
44 assert(!UseSIGTRAP, "precondition");
45 if (*(int*)addr != 0 /*illtrap*/) return false;
46 CodeBlob* cb = CodeCache::find_blob_unsafe(addr);
47 if (cb == NULL || !cb->is_nmethod()) return false;
48 nmethod *nm = (nmethod *)cb;
49 // This method is not_entrant or zombie iff the illtrap instruction is
50 // located at the verified entry point.
51 return nm->verified_entry_point() == addr;
52 }
53
|
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 *
24 */
25
26 #include "precompiled.hpp"
27 #include "asm/macroAssembler.inline.hpp"
28 #include "memory/resourceArea.hpp"
29 #include "nativeInst_ppc.hpp"
30 #include "oops/compressedOops.inline.hpp"
31 #include "oops/oop.hpp"
32 #include "runtime/handles.hpp"
33 #include "runtime/orderAccess.hpp"
34 #include "runtime/sharedRuntime.hpp"
35 #include "runtime/stubRoutines.hpp"
36 #include "utilities/ostream.hpp"
37 #ifdef COMPILER1
38 #include "c1/c1_Runtime1.hpp"
39 #endif
40
41 // We use an illtrap for marking a method as not_entrant or zombie iff !UseSIGTRAP
42 // Work around a C++ compiler bug which changes 'this'
43 bool NativeInstruction::is_sigill_zombie_not_entrant_at(address addr) {
44 assert(!UseSIGTRAP, "precondition");
45 if (*(int*)addr != 0 /*illtrap*/) return false;
46 CodeBlob* cb = CodeCache::find_blob_unsafe(addr);
47 if (cb == NULL || !cb->is_nmethod()) return false;
48 nmethod *nm = (nmethod *)cb;
49 // This method is not_entrant or zombie iff the illtrap instruction is
50 // located at the verified entry point.
51 return nm->verified_entry_point() == addr;
52 }
53
|