1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright 2012, 2013 SAP AG. All rights reserved. |
3 * Copyright 2012, 2014 SAP AG. All rights reserved. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
8 * published by the Free Software Foundation. |
8 * published by the Free Software Foundation. |
23 * |
23 * |
24 */ |
24 */ |
25 |
25 |
26 #include "precompiled.hpp" |
26 #include "precompiled.hpp" |
27 #include "runtime/threadLocalStorage.hpp" |
27 #include "runtime/threadLocalStorage.hpp" |
28 #include "thread_aix.inline.hpp" |
28 #include "runtime/thread.hpp" |
29 |
29 |
30 void ThreadLocalStorage::generate_code_for_get_thread() { |
30 void ThreadLocalStorage::generate_code_for_get_thread() { |
31 // nothing we can do here for user-level thread |
31 // Nothing we can do here for user-level thread. |
32 } |
32 } |
33 |
33 |
34 void ThreadLocalStorage::pd_init() { |
34 void ThreadLocalStorage::pd_init() { |
35 // Nothing to do |
35 // Nothing to do. |
36 } |
36 } |
37 |
37 |
38 void ThreadLocalStorage::pd_set_thread(Thread* thread) { |
38 void ThreadLocalStorage::pd_set_thread(Thread* thread) { |
39 os::thread_local_storage_at_put(ThreadLocalStorage::thread_index(), thread); |
39 os::thread_local_storage_at_put(ThreadLocalStorage::thread_index(), thread); |
40 } |
40 } |