1.1 --- a/src/os/solaris/vm/thread_solaris.inline.hpp Tue Nov 23 15:01:43 2010 -0500 1.2 +++ b/src/os/solaris/vm/thread_solaris.inline.hpp Tue Nov 23 13:22:55 2010 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2002, 2003, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -22,6 +22,24 @@ 1.11 * 1.12 */ 1.13 1.14 +#ifndef OS_SOLARIS_VM_THREAD_SOLARIS_INLINE_HPP 1.15 +#define OS_SOLARIS_VM_THREAD_SOLARIS_INLINE_HPP 1.16 + 1.17 +#include "runtime/atomic.hpp" 1.18 +#include "runtime/prefetch.hpp" 1.19 +#include "runtime/thread.hpp" 1.20 +#include "runtime/threadLocalStorage.hpp" 1.21 +#ifdef TARGET_OS_ARCH_solaris_x86 1.22 +# include "atomic_solaris_x86.inline.hpp" 1.23 +# include "orderAccess_solaris_x86.inline.hpp" 1.24 +# include "prefetch_solaris_x86.inline.hpp" 1.25 +#endif 1.26 +#ifdef TARGET_OS_ARCH_solaris_sparc 1.27 +# include "atomic_solaris_sparc.inline.hpp" 1.28 +# include "orderAccess_solaris_sparc.inline.hpp" 1.29 +# include "prefetch_solaris_sparc.inline.hpp" 1.30 +#endif 1.31 + 1.32 // Thread::current is "hot" it's called > 128K times in the 1st 500 msecs of 1.33 // startup. 1.34 // ThreadLocalStorage::thread is warm -- it's called > 16K times in the same 1.35 @@ -43,3 +61,5 @@ 1.36 return ThreadLocalStorage::get_thread_via_cache_slowly(raw, ix); 1.37 } 1.38 } 1.39 + 1.40 +#endif // OS_SOLARIS_VM_THREAD_SOLARIS_INLINE_HPP