0N/A/*
1879N/A * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A * or visit www.oracle.com if you need additional information or have any
1472N/A * questions.
0N/A *
0N/A */
0N/A
1879N/A#include "precompiled.hpp"
1879N/A#include "runtime/deoptimization.hpp"
1879N/A#include "runtime/frame.inline.hpp"
1879N/A#include "runtime/stubRoutines.hpp"
1879N/A#ifdef TARGET_OS_FAMILY_linux
1879N/A# include "thread_linux.inline.hpp"
1879N/A#endif
1879N/A#ifdef TARGET_OS_FAMILY_solaris
1879N/A# include "thread_solaris.inline.hpp"
1879N/A#endif
0N/A
0N/A// Implementation of the platform-specific part of StubRoutines - for
0N/A// a description of how to extend it, see the stubRoutines.hpp file.
0N/A
0N/A
0N/Aextern "C" {
0N/A address _flush_reg_windows(); // in .s file.
0N/A // Flush registers to stack. In case of error we will need to stack walk.
0N/A address bootstrap_flush_windows(void) {
0N/A Thread* thread = ThreadLocalStorage::get_thread_slow();
0N/A // Very early in process there is no thread.
0N/A if (thread != NULL) {
0N/A guarantee(thread->is_Java_thread(), "Not a Java thread.");
0N/A JavaThread* jt = (JavaThread*)thread;
0N/A guarantee(!jt->has_last_Java_frame(), "Must be able to flush registers!");
0N/A }
0N/A return (address)_flush_reg_windows();
0N/A };
0N/A};
0N/A
0N/Aaddress StubRoutines::Sparc::_test_stop_entry = NULL;
0N/Aaddress StubRoutines::Sparc::_stop_subroutine_entry = NULL;
0N/Aaddress StubRoutines::Sparc::_flush_callers_register_windows_entry = CAST_FROM_FN_PTR(address, bootstrap_flush_windows);
0N/A
0N/Aaddress StubRoutines::Sparc::_partial_subtype_check = NULL;
0N/A
0N/Aint StubRoutines::Sparc::_atomic_memory_operation_lock = StubRoutines::Sparc::unlocked;
0N/A
0N/Aint StubRoutines::Sparc::_v8_oop_lock_cache[StubRoutines::Sparc::nof_v8_oop_lock_cache_entries];