hotspot/src/os_cpu/solaris_x86/vm/threadLS_solaris_x86.hpp
changeset 7397 5b173b4ca846
parent 5547 f4b087cbb361
child 32181 dee472a9b4db
equal deleted inserted replaced
7396:518b01b064ff 7397:5b173b4ca846
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2007, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  *
    22  *
    23  */
    23  */
       
    24 
       
    25 #ifndef OS_CPU_SOLARIS_X86_VM_THREADLS_SOLARIS_X86_HPP
       
    26 #define OS_CPU_SOLARIS_X86_VM_THREADLS_SOLARIS_X86_HPP
    24 
    27 
    25 // Processor dependent parts of ThreadLocalStorage
    28 // Processor dependent parts of ThreadLocalStorage
    26 
    29 
    27 private:
    30 private:
    28   static Thread* _get_thread_cache[];  // index by [(raw_id>>9)^(raw_id>>20) % _pd_cache_size]
    31   static Thread* _get_thread_cache[];  // index by [(raw_id>>9)^(raw_id>>20) % _pd_cache_size]
    76     return ix;
    79     return ix;
    77   }
    80   }
    78 
    81 
    79   // Java Thread
    82   // Java Thread
    80   static inline Thread* thread();
    83   static inline Thread* thread();
       
    84 
       
    85 #endif // OS_CPU_SOLARIS_X86_VM_THREADLS_SOLARIS_X86_HPP