simonis@6465: /* simonis@6465: * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. goetz@6515: * Copyright 2012, 2014 SAP AG. All rights reserved. simonis@6465: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. simonis@6465: * simonis@6465: * This code is free software; you can redistribute it and/or modify it simonis@6465: * under the terms of the GNU General Public License version 2 only, as simonis@6465: * published by the Free Software Foundation. simonis@6465: * simonis@6465: * This code is distributed in the hope that it will be useful, but WITHOUT simonis@6465: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or simonis@6465: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License simonis@6465: * version 2 for more details (a copy is included in the LICENSE file that simonis@6465: * accompanied this code). simonis@6465: * simonis@6465: * You should have received a copy of the GNU General Public License version simonis@6465: * 2 along with this work; if not, write to the Free Software Foundation, simonis@6465: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. simonis@6465: * simonis@6465: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA simonis@6465: * or visit www.oracle.com if you need additional information or have any simonis@6465: * questions. simonis@6465: * simonis@6465: */ simonis@6465: simonis@6465: #include "precompiled.hpp" simonis@6465: #include "runtime/threadLocalStorage.hpp" goetz@6515: #include "runtime/thread.hpp" simonis@6465: simonis@6465: void ThreadLocalStorage::generate_code_for_get_thread() { goetz@6515: // Nothing we can do here for user-level thread. simonis@6465: } simonis@6465: simonis@6465: void ThreadLocalStorage::pd_init() { goetz@6515: // Nothing to do. simonis@6465: } simonis@6465: simonis@6465: void ThreadLocalStorage::pd_set_thread(Thread* thread) { simonis@6465: os::thread_local_storage_at_put(ThreadLocalStorage::thread_index(), thread); simonis@6465: }