Ignore:
Timestamp:
Mar 26, 2011, 8:39:20 PM (14 years ago)
Author:
dmik
Message:

trunk: Merged in openjdk6 b22 from branches/vendor/oracle.

Location:
trunk/openjdk
Files:
104 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk

  • trunk/openjdk/hotspot/src/os_cpu/linux_sparc/vm/assembler_linux_sparc.cpp

    r2 r278  
    11/*
    2  * Copyright 1999-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_sparc/vm/atomic_linux_sparc.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 1999-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_sparc/vm/globals_linux_sparc.hpp

    r2 r278  
    11/*
    2  * Copyright 2000-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_sparc/vm/linux_sparc.ad

    r2 r278  
    11//
    2 // Copyright 1999-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2// Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
    33// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44//
     
    1717// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818//
    19 // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 // CA 95054 USA or visit www.sun.com if you need additional information or
    21 // have any questions.
     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
     21// questions.
    2222//
    2323
  • trunk/openjdk/hotspot/src/os_cpu/linux_sparc/vm/linux_sparc.s

    r2 r278  
    11#
    2 # Copyright 2005-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     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
     21# questions.
    2222#
    2323
  • trunk/openjdk/hotspot/src/os_cpu/linux_sparc/vm/orderAccess_linux_sparc.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 2003-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    3737
    3838inline void OrderAccess::release() {
    39   jint* dummy = (jint*)&dummy;
    40   __asm__ volatile("stw %%g0, [%0]" : : "r" (dummy) : "memory");
     39  jint* local_dummy = (jint*)&local_dummy;
     40  __asm__ volatile("stw %%g0, [%0]" : : "r" (local_dummy) : "memory");
    4141}
    4242
  • trunk/openjdk/hotspot/src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp

    r2 r278  
    11/*
    2  * Copyright 1999-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    154154        vm_exit_out_of_memory(0, "pthread_getattr_np");
    155155      } else {
    156         fatal1("pthread_getattr_np failed with errno = %d", rslt);
     156        fatal(err_msg("pthread_getattr_np failed with errno = %d", rslt));
    157157      }
    158158    }
  • trunk/openjdk/hotspot/src/os_cpu/linux_sparc/vm/os_linux_sparc.hpp

    r2 r278  
    11/*
    2  * Copyright 1999-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_sparc/vm/prefetch_linux_sparc.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 2003-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_sparc/vm/threadLS_linux_sparc.cpp

    r2 r278  
    11/*
    2  * Copyright 1998-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_sparc/vm/threadLS_linux_sparc.hpp

    r2 r278  
    11/*
    2  * Copyright 1998-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_sparc/vm/thread_linux_sparc.cpp

    r2 r278  
    11/*
    2  * Copyright 2003-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    106106  return false;
    107107}
     108
     109void JavaThread::cache_global_variables() { }
     110
  • trunk/openjdk/hotspot/src/os_cpu/linux_sparc/vm/thread_linux_sparc.hpp

    r2 r278  
    11/*
    2  * Copyright 1998-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_sparc/vm/vmStructs_linux_sparc.hpp

    r2 r278  
    11/*
    2  * Copyright 2000-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_sparc/vm/vm_version_linux_sparc.cpp

    r2 r278  
    11/*
    2  * Copyright 2006-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2006, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/assembler_linux_x86.cpp

    r2 r278  
    11/*
    2  * Copyright 1999-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/atomic_linux_x86.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 1999-2005 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2005, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/bytes_linux_x86.inline.hpp

    r49 r278  
    11/*
    2  * Copyright 1999-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/copy_linux_x86.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 2003-2004 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    2727  (void)memmove(to, from, count * HeapWordSize);
    2828#else
    29   // Same as pd_aligned_conjoint_words, except includes a zero-count check.
     29  // Includes a zero-count check.
    3030  intx temp;
    3131  __asm__ volatile("        testl   %6,%6         ;"
     
    8585  }
    8686#else
    87   // Same as pd_aligned_disjoint_words, except includes a zero-count check.
     87  // Includes a zero-count check.
    8888  intx temp;
    8989  __asm__ volatile("        testl   %6,%6       ;"
     
    131131
    132132static void pd_aligned_conjoint_words(HeapWord* from, HeapWord* to, size_t count) {
    133 #ifdef AMD64
    134   (void)memmove(to, from, count * HeapWordSize);
    135 #else
    136   // Same as pd_conjoint_words, except no zero-count check.
    137   intx temp;
    138   __asm__ volatile("        cmpl    %4,%5         ;"
    139                    "        leal    -4(%4,%6,4),%3;"
    140                    "        jbe     1f            ;"
    141                    "        cmpl    %7,%5         ;"
    142                    "        jbe     4f            ;"
    143                    "1:      cmpl    $32,%6        ;"
    144                    "        ja      3f            ;"
    145                    "        subl    %4,%1         ;"
    146                    "2:      movl    (%4),%3       ;"
    147                    "        movl    %7,(%5,%4,1)  ;"
    148                    "        addl    $4,%0         ;"
    149                    "        subl    $1,%2          ;"
    150                    "        jnz     2b            ;"
    151                    "        jmp     7f            ;"
    152                    "3:      rep;    smovl         ;"
    153                    "        jmp     7f            ;"
    154                    "4:      cmpl    $32,%2        ;"
    155                    "        movl    %7,%0         ;"
    156                    "        leal    -4(%5,%6,4),%1;"
    157                    "        ja      6f            ;"
    158                    "        subl    %4,%1         ;"
    159                    "5:      movl    (%4),%3       ;"
    160                    "        movl    %7,(%5,%4,1)  ;"
    161                    "        subl    $4,%0         ;"
    162                    "        subl    $1,%2          ;"
    163                    "        jnz     5b            ;"
    164                    "        jmp     7f            ;"
    165                    "6:      std                   ;"
    166                    "        rep;    smovl         ;"
    167                    "        cld                   ;"
    168                    "7:      nop                    "
    169                    : "=S" (from), "=D" (to), "=c" (count), "=r" (temp)
    170                    : "0"  (from), "1"  (to), "2"  (count), "3"  (temp)
    171                    : "memory", "flags");
    172 #endif // AMD64
     133  pd_conjoint_words(from, to, count);
    173134}
    174135
    175136static void pd_aligned_disjoint_words(HeapWord* from, HeapWord* to, size_t count) {
    176 #ifdef AMD64
    177137  pd_disjoint_words(from, to, count);
    178 #else
    179   // Same as pd_disjoint_words, except no zero-count check.
    180   intx temp;
    181   __asm__ volatile("        cmpl    $32,%6      ;"
    182                    "        ja      2f          ;"
    183                    "        subl    %4,%1       ;"
    184                    "1:      movl    (%4),%3     ;"
    185                    "        movl    %7,(%5,%4,1);"
    186                    "        addl    $4,%0       ;"
    187                    "        subl    $1,%2        ;"
    188                    "        jnz     1b          ;"
    189                    "        jmp     3f          ;"
    190                    "2:      rep;    smovl       ;"
    191                    "3:      nop                  "
    192                    : "=S" (from), "=D" (to), "=c" (count), "=r" (temp)
    193                    : "0"  (from), "1"  (to), "2"  (count), "3"  (temp)
    194                    : "memory", "cc");
    195 #endif // AMD64
    196138}
    197139
     
    200142  (void)memmove(to, from, count);
    201143#else
     144  // Includes a zero-count check.
    202145  intx temp;
    203146  __asm__ volatile("        testl   %6,%6          ;"
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/globals_linux_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 2000-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    3131define_pd_global(intx, VMThreadStackSize,        1024);
    3232#else
    33 // ThreadStackSize 320 allows TaggedStackInterpreter and a couple of test cases
    34 // to run while keeping the number of threads that can be created high.
    35 // System default ThreadStackSize appears to be 512 which is too big.
     33// ThreadStackSize 320 allows a couple of test cases to run while
     34// keeping the number of threads that can be created high.  System
     35// default ThreadStackSize appears to be 512 which is too big.
    3636define_pd_global(intx, ThreadStackSize,          320);
    3737define_pd_global(intx, VMThreadStackSize,        512);
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/linux_x86_32.ad

    r2 r278  
    11//
    2 // Copyright 1999-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2// Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
    33// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44//
     
    1717// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818//
    19 // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 // CA 95054 USA or visit www.sun.com if you need additional information or
    21 // have any questions.
     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
     21// questions.
    2222//
    2323//
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/linux_x86_32.s

    r2 r278  
    11#
    2 # Copyright 2004-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, 2007, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     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
     21# questions.
    2222#
    2323
     
    122122        addl     %esi,%edi
    1231234:      movl     %eax,%ecx            # byte count less prefix
    124         andl     $3,%ecx              # suffix byte count
     1245:      andl     $3,%ecx              # suffix byte count
    125125        jz       7f                   # no suffix
    126126        # copy suffix
    127 5:      xorl     %eax,%eax
     127        xorl     %eax,%eax
    1281286:      movb     (%esi,%eax,1),%dl
    129129        movb     %dl,(%edi,%eax,1)
     
    1601603:      rep;     smovl
    1611614:      movl     %eax,%ecx            # byte count
    162         andl     $3,%ecx              # suffix byte count
     1625:      andl     $3,%ecx              # suffix byte count
    163163        jz       7f                   # no suffix
    164164        # copy suffix
    165 5:      subl     %esi,%edi
     165        subl     %esi,%edi
    166166        addl     $3,%esi
    1671676:      movb     (%esi),%dl
     
    2152153:      rep;     smovl
    2162164:      movl     %eax,%ecx
    217         andl     $3,%ecx
     2175:      andl     $3,%ecx
    218218        jz       7f
    219219        # copy suffix
    220 5:      xorl     %eax,%eax
     220        xorl     %eax,%eax
    2212216:      movb     (%esi,%eax,1),%dl
    222222        movb     %dl,(%edi,%eax,1)
     
    251251        addl     %esi,%edi
    2522524:      movl     %eax,%ecx
    253         andl     $3,%ecx
     2535:      andl     $3,%ecx
    254254        jz       7f
    255 5:      subl     %esi,%edi
     255        subl     %esi,%edi
    256256        addl     $3,%esi
    2572576:      movb     (%esi),%dl
     
    288288        jz       1f                   # no prefix
    289289        # copy prefix
     290        subl     $1,%ecx
     291        jl       5f                   # zero count
    290292        movw     (%esi),%dx
    291293        movw     %dx,(%edi)
    292294        addl     %eax,%esi            # %eax == 2
    293295        addl     %eax,%edi
    294         subl     $1,%ecx
    2952961:      movl     %ecx,%eax            # word count less prefix
    296297        sarl     %ecx                 # dword count
     
    455456        .=.+10
    4564572:      subl     %esi,%edi
     458        jmp      4f
    457459        .p2align 4,,15
    4584603:      movl     (%esi),%edx
    459461        movl     %edx,(%edi,%esi,1)
    460462        addl     $4,%esi
    461         subl     $1,%ecx
    462         jnz      3b
     4634:      subl     $1,%ecx
     464        jge      3b
    463465        popl     %edi
    464466        popl     %esi
     
    468470        leal     -4(%edi,%ecx,4),%edi # to + count*4 - 4
    469471        cmpl     $32,%ecx
    470         ja       3f                   # > 32 dwords
     472        ja       4f                   # > 32 dwords
    471473        subl     %eax,%edi            # eax == from + count*4 - 4
     474        jmp      3f
    472475        .p2align 4,,15
    4734762:      movl     (%eax),%edx
    474477        movl     %edx,(%edi,%eax,1)
    475478        subl     $4,%eax
    476         subl     $1,%ecx
    477         jnz      2b
     4793:      subl     $1,%ecx
     480        jge      2b
    478481        cld
    479482        popl     %edi
    480483        popl     %esi
    481484        ret
    482 3:      movl     %eax,%esi            # from + count*4 - 4
     4854:      movl     %eax,%esi            # from + count*4 - 4
    483486        rep;     smovl
    484487        cld
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/linux_x86_64.ad

    r2 r278  
    11//
    2 // Copyright 2003-2006 Sun Microsystems, Inc.  All Rights Reserved.
     2// Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved.
    33// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44//
     
    1717// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818//
    19 // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 // CA 95054 USA or visit www.sun.com if you need additional information or
    21 // have any questions.
     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
     21// questions.
    2222//
    2323//
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/linux_x86_64.s

    r2 r278  
    11#
    2 # Copyright 2004-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, 2007, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     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
     21# questions.
    2222#
    2323
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/orderAccess_linux_x86.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 2003-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    3131
    3232inline void OrderAccess::acquire() {
    33   volatile intptr_t dummy;
    34 #ifdef AMD64
    35   __asm__ volatile ("movq 0(%%rsp), %0" : "=r" (dummy) : : "memory");
    36 #else
    37   __asm__ volatile ("movl 0(%%esp),%0" : "=r" (dummy) : : "memory");
     33  volatile intptr_t local_dummy;
     34#ifdef AMD64
     35  __asm__ volatile ("movq 0(%%rsp), %0" : "=r" (local_dummy) : : "memory");
     36#else
     37  __asm__ volatile ("movl 0(%%esp),%0" : "=r" (local_dummy) : : "memory");
    3838#endif // AMD64
    3939}
    4040
    4141inline void OrderAccess::release() {
    42   dummy = 0;
     42  // Avoid hitting the same cache-line from
     43  // different threads.
     44  volatile jint local_dummy = 0;
    4345}
    4446
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp

    r2 r278  
    11/*
    2  * Copyright 1999-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    681681         vm_exit_out_of_memory(0, "pthread_getattr_np");
    682682       } else {
    683          fatal1("pthread_getattr_np failed with errno = %d", rslt);
     683         fatal(err_msg("pthread_getattr_np failed with errno = %d", rslt));
    684684       }
    685685     }
     
    719719  ucontext_t *uc = (ucontext_t*)context;
    720720  st->print_cr("Registers:");
     721
     722  // this is horrendously verbose but the layout of the registers in the
     723  // context does not match how we defined our abstract Register set, so
     724  // we can't just iterate through the gregs area
     725
    721726#ifdef AMD64
    722727  st->print(  "RAX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RAX]);
     
    746751  st->cr();
    747752  st->print("  TRAPNO=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_TRAPNO]);
     753
     754  st->cr();
     755  st->cr();
     756
     757  st->print_cr("Register to memory mapping:");
     758  st->cr();
     759
     760  // this is only for the "general purpose" registers
     761
     762  st->print_cr("RAX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RAX]);
     763  print_location(st, uc->uc_mcontext.gregs[REG_RAX]);
     764  st->cr();
     765  st->print_cr("RBX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RBX]);
     766  print_location(st, uc->uc_mcontext.gregs[REG_RBX]);
     767  st->cr();
     768  st->print_cr("RCX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RCX]);
     769  print_location(st, uc->uc_mcontext.gregs[REG_RCX]);
     770  st->cr();
     771  st->print_cr("RDX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RDX]);
     772  print_location(st, uc->uc_mcontext.gregs[REG_RDX]);
     773  st->cr();
     774  st->print_cr("RSP=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RSP]);
     775  print_location(st, uc->uc_mcontext.gregs[REG_RSP]);
     776  st->cr();
     777  st->print_cr("RBP=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RBP]);
     778  print_location(st, uc->uc_mcontext.gregs[REG_RBP]);
     779  st->cr();
     780  st->print_cr("RSI=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RSI]);
     781  print_location(st, uc->uc_mcontext.gregs[REG_RSI]);
     782  st->cr();
     783  st->print_cr("RDI=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RDI]);
     784  print_location(st, uc->uc_mcontext.gregs[REG_RDI]);
     785  st->cr();
     786  st->print_cr("R8 =" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R8]);
     787  print_location(st, uc->uc_mcontext.gregs[REG_R8]);
     788  st->cr();
     789  st->print_cr("R9 =" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R9]);
     790  print_location(st, uc->uc_mcontext.gregs[REG_R9]);
     791  st->cr();
     792  st->print_cr("R10=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R10]);
     793  print_location(st, uc->uc_mcontext.gregs[REG_R10]);
     794  st->cr();
     795  st->print_cr("R11=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R11]);
     796  print_location(st, uc->uc_mcontext.gregs[REG_R11]);
     797  st->cr();
     798  st->print_cr("R12=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R12]);
     799  print_location(st, uc->uc_mcontext.gregs[REG_R12]);
     800  st->cr();
     801  st->print_cr("R13=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R13]);
     802  print_location(st, uc->uc_mcontext.gregs[REG_R13]);
     803  st->cr();
     804  st->print_cr("R14=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R14]);
     805  print_location(st, uc->uc_mcontext.gregs[REG_R14]);
     806  st->cr();
     807  st->print_cr("R15=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R15]);
     808  print_location(st, uc->uc_mcontext.gregs[REG_R15]);
     809
    748810#else
    749811  st->print(  "EAX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_EAX]);
     
    760822  st->print(", CR2=" INTPTR_FORMAT, uc->uc_mcontext.cr2);
    761823  st->print(", EFLAGS=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_EFL]);
     824
     825  st->cr();
     826  st->cr();
     827
     828  st->print_cr("Register to memory mapping:");
     829  st->cr();
     830
     831  // this is only for the "general purpose" registers
     832
     833  st->print_cr("EAX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_EAX]);
     834  print_location(st, uc->uc_mcontext.gregs[REG_EAX]);
     835  st->cr();
     836  st->print_cr("EBX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_EBX]);
     837  print_location(st, uc->uc_mcontext.gregs[REG_EBX]);
     838  st->cr();
     839  st->print_cr("ECX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_ECX]);
     840  print_location(st, uc->uc_mcontext.gregs[REG_ECX]);
     841  st->cr();
     842  st->print_cr("EDX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_EDX]);
     843  print_location(st, uc->uc_mcontext.gregs[REG_EDX]);
     844  st->cr();
     845  st->print_cr("ESP=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_ESP]);
     846  print_location(st, uc->uc_mcontext.gregs[REG_ESP]);
     847  st->cr();
     848  st->print_cr("EBP=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_EBP]);
     849  print_location(st, uc->uc_mcontext.gregs[REG_EBP]);
     850  st->cr();
     851  st->print_cr("ESI=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_ESI]);
     852  print_location(st, uc->uc_mcontext.gregs[REG_ESI]);
     853  st->cr();
     854  st->print_cr("EDI=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_EDI]);
     855  print_location(st, uc->uc_mcontext.gregs[REG_EDI]);
     856
    762857#endif // AMD64
    763858  st->cr();
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 1999-2004 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2004, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/prefetch_linux_x86.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/threadLS_linux_x86.cpp

    r2 r278  
    11/*
    2  * Copyright 1999-2003 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/threadLS_linux_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 1999-2003 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/thread_linux_x86.cpp

    r2 r278  
    11/*
    2  * Copyright 2003-2005 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    8080  return false;
    8181}
     82
     83void JavaThread::cache_global_variables() { }
     84
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/thread_linux_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 2000-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/vmStructs_linux_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 2000-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_x86/vm/vm_version_linux_x86.cpp

    r2 r278  
    11/*
    2  * Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_zero/vm/assembler_linux_zero.cpp

    r2 r278  
    11/*
    2  * Copyright 1997-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * Copyright 2009 Red Hat, Inc.
    44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     
    1818 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1919 *
    20  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    21  * CA 95054 USA or visit www.sun.com if you need additional information or
    22  * have any questions.
     20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     21 * or visit www.oracle.com if you need additional information or have any
     22 * questions.
    2323 *
    2424 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_zero/vm/atomic_linux_zero.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 2003-2005 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
    33 * Copyright 2007, 2008 Red Hat, Inc.
    44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     
    1818 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1919 *
    20  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    21  * CA 95054 USA or visit www.sun.com if you need additional information or
    22  * have any questions.
     20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     21 * or visit www.oracle.com if you need additional information or have any
     22 * questions.
    2323 *
    2424 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_zero/vm/bytes_linux_zero.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_zero/vm/globals_linux_zero.hpp

    r2 r278  
    11/*
    2  * Copyright 2000-2005 Sun Microsystems, Inc.  All Rights Reserved.
    3  * Copyright 2007, 2008 Red Hat, Inc.
     2 * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
     3 * Copyright 2007, 2008, 2010 Red Hat, Inc.
    44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    55 *
     
    1818 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1919 *
    20  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    21  * CA 95054 USA or visit www.sun.com if you need additional information or
    22  * have any questions.
     20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     21 * or visit www.oracle.com if you need additional information or have any
     22 * questions.
    2323 *
    2424 */
     
    3030
    3131define_pd_global(bool,  DontYieldALot,           false);
     32define_pd_global(intx,  ThreadStackSize,         1536);
    3233#ifdef _LP64
    33 define_pd_global(intx,  ThreadStackSize,         1536);
    3434define_pd_global(intx,  VMThreadStackSize,       1024);
    3535#else
    36 define_pd_global(intx,  ThreadStackSize,         1024);
    3736define_pd_global(intx,  VMThreadStackSize,       512);
    3837#endif // _LP64
  • trunk/openjdk/hotspot/src/os_cpu/linux_zero/vm/orderAccess_linux_zero.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
    33 * Copyright 2007, 2008, 2009 Red Hat, Inc.
    44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     
    1818 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1919 *
    20  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    21  * CA 95054 USA or visit www.sun.com if you need additional information or
    22  * have any questions.
     20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     21 * or visit www.oracle.com if you need additional information or have any
     22 * questions.
    2323 *
    2424 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp

    r2 r278  
    11/*
    2  * Copyright 2003-2007 Sun Microsystems, Inc.  All Rights Reserved.
    3  * Copyright 2007, 2008 Red Hat, Inc.
     2 * Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved.
     3 * Copyright 2007, 2008, 2009, 2010 Red Hat, Inc.
    44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    55 *
     
    1818 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1919 *
    20  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    21  * CA 95054 USA or visit www.sun.com if you need additional information or
    22  * have any questions.
     20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     21 * or visit www.oracle.com if you need additional information or have any
     22 * questions.
    2323 *
    2424 */
     
    240240
    241241bool os::is_allocatable(size_t bytes) {
    242   ShouldNotCallThis();
     242#ifdef _LP64
     243  return true;
     244#else
     245  if (bytes < 2 * G) {
     246    return true;
     247  }
     248
     249  char* addr = reserve_memory(bytes, NULL);
     250
     251  if (addr != NULL) {
     252    release_memory(addr, bytes);
     253  }
     254
     255  return addr != NULL;
     256#endif // _LP64
    243257}
    244258
     
    275289    }
    276290    else {
    277       fatal1("pthread_getattr_np failed with errno = %d", res);
     291      fatal(err_msg("pthread_getattr_np failed with errno = %d", res));
    278292    }
    279293  }
     
    283297  res = pthread_attr_getstack(&attr, (void **) &stack_bottom, &stack_bytes);
    284298  if (res != 0) {
    285     fatal1("pthread_attr_getstack failed with errno = %d", res);
     299    fatal(err_msg("pthread_attr_getstack failed with errno = %d", res));
    286300  }
    287301  address stack_top = stack_bottom + stack_bytes;
     
    295309  res = pthread_attr_getguardsize(&attr, &guard_bytes);
    296310  if (res != 0) {
    297     fatal1("pthread_attr_getguardsize failed with errno = %d", res);
     311    fatal(err_msg("pthread_attr_getguardsize failed with errno = %d", res));
    298312  }
    299313  int guard_pages = align_size_up(guard_bytes, page_bytes) / page_bytes;
     
    422436                                    HeapWord* to,
    423437                                    size_t    count) {
    424     ShouldNotCallThis();
     438    memmove(to, from, count);
    425439  }
    426440  void _Copy_arrayof_conjoint_jshorts(HeapWord* from,
    427441                                      HeapWord* to,
    428442                                      size_t    count) {
    429     ShouldNotCallThis();
     443    memmove(to, from, count * 2);
    430444  }
    431445  void _Copy_arrayof_conjoint_jints(HeapWord* from,
    432446                                    HeapWord* to,
    433447                                    size_t    count) {
    434     ShouldNotCallThis();
     448    memmove(to, from, count * 4);
    435449  }
    436450  void _Copy_arrayof_conjoint_jlongs(HeapWord* from,
    437451                                     HeapWord* to,
    438452                                     size_t    count) {
    439     ShouldNotCallThis();
     453    memmove(to, from, count * 8);
    440454  }
    441455};
  • trunk/openjdk/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.hpp

    r2 r278  
    11/*
    2  * Copyright 2003-2004 Sun Microsystems, Inc.  All Rights Reserved.
    3  * Copyright 2007, 2008 Red Hat, Inc.
     2 * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
     3 * Copyright 2007, 2008, 2010 Red Hat, Inc.
    44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    55 *
     
    1818 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1919 *
    20  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    21  * CA 95054 USA or visit www.sun.com if you need additional information or
    22  * have any questions.
     20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     21 * or visit www.oracle.com if you need additional information or have any
     22 * questions.
    2323 *
    2424 */
     
    4040                  : "=f"(tmp)
    4141                  : "b"(src), "b"(dst));
     42#elif defined(S390) && !defined(_LP64)
     43    double tmp;
     44    asm volatile ("ld  %0, 0(%1)\n"
     45                  "std %0, 0(%2)\n"
     46                  : "=r"(tmp)
     47                  : "a"(src), "a"(dst));
    4248#else
    4349    *(jlong *) dst = *(jlong *) src;
    44 #endif // PPC && !_LP64
     50#endif
    4551  }
  • trunk/openjdk/hotspot/src/os_cpu/linux_zero/vm/prefetch_linux_zero.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 2003-2004 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
    33 * Copyright 2007, 2008 Red Hat, Inc.
    44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     
    1818 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1919 *
    20  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    21  * CA 95054 USA or visit www.sun.com if you need additional information or
    22  * have any questions.
     20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     21 * or visit www.oracle.com if you need additional information or have any
     22 * questions.
    2323 *
    2424 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_zero/vm/threadLS_linux_zero.cpp

    r2 r278  
    11/*
    2  * Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
    33 * Copyright 2007 Red Hat, Inc.
    44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     
    1818 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1919 *
    20  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    21  * CA 95054 USA or visit www.sun.com if you need additional information or
    22  * have any questions.
     20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     21 * or visit www.oracle.com if you need additional information or have any
     22 * questions.
    2323 *
    2424 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_zero/vm/threadLS_linux_zero.hpp

    r2 r278  
    11/*
    2  * Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.cpp

    r2 r278  
    11/*
    2  * Copyright 1997-2007 Sun Microsystems, Inc.  All Rights Reserved.
    3  * Copyright 2009 Red Hat, Inc.
     2 * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
     3 * Copyright 2009, 2010 Red Hat, Inc.
    44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    55 *
     
    1818 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1919 *
    20  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    21  * CA 95054 USA or visit www.sun.com if you need additional information or
    22  * have any questions.
     20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     21 * or visit www.oracle.com if you need additional information or have any
     22 * questions.
    2323 *
    2424 */
    2525
    26 // This file is intentionally empty
     26#include "incls/_precompiled.incl"
     27#include "incls/_thread_linux_zero.cpp.incl"
     28
     29void JavaThread::cache_global_variables() {
     30  // nothing to do
     31}
  • trunk/openjdk/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp

    r2 r278  
    11/*
    2  * Copyright 2000-2007 Sun Microsystems, Inc.  All Rights Reserved.
    3  * Copyright 2007, 2008, 2009 Red Hat, Inc.
     2 * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
     3 * Copyright 2007, 2008, 2009, 2010 Red Hat, Inc.
    44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    55 *
     
    1818 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1919 *
    20  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    21  * CA 95054 USA or visit www.sun.com if you need additional information or
    22  * have any questions.
     20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     21 * or visit www.oracle.com if you need additional information or have any
     22 * questions.
    2323 *
    2424 */
     
    6969 public:
    7070  void set_last_Java_frame() {
    71     JavaFrameAnchor *jfa = frame_anchor();
    72     jfa->set_last_Java_sp((intptr_t *) top_zero_frame());
     71    set_last_Java_frame(top_zero_frame(), zero_stack()->sp());
    7372  }
    7473  void reset_last_Java_frame() {
    75     JavaFrameAnchor *jfa = frame_anchor();
    76     jfa->set_last_Java_sp(NULL);
     74    frame_anchor()->zap();
     75  }
     76  void set_last_Java_frame(ZeroFrame* fp, intptr_t* sp) {
     77    frame_anchor()->set(sp, NULL, fp);
     78  }
     79
     80 public:
     81  ZeroFrame* last_Java_fp() {
     82    return frame_anchor()->last_Java_fp();
    7783  }
    7884
     
    8086  frame pd_last_frame() {
    8187    assert(has_last_Java_frame(), "must have last_Java_sp() when suspended");
    82     return frame(last_Java_sp(), zero_stack()->sp());
     88    return frame(last_Java_fp(), last_Java_sp());
     89  }
     90
     91 public:
     92  static ByteSize last_Java_fp_offset() {
     93    return byte_offset_of(JavaThread, _anchor) +
     94      JavaFrameAnchor::last_Java_fp_offset();
    8395  }
    8496
  • trunk/openjdk/hotspot/src/os_cpu/linux_zero/vm/vmStructs_linux_zero.hpp

    r2 r278  
    11/*
    2  * Copyright 2003-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * Copyright 2007 Red Hat, Inc.
    44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     
    1818 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1919 *
    20  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    21  * CA 95054 USA or visit www.sun.com if you need additional information or
    22  * have any questions.
     20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     21 * or visit www.oracle.com if you need additional information or have any
     22 * questions.
    2323 *
    2424 */
  • trunk/openjdk/hotspot/src/os_cpu/linux_zero/vm/vm_version_linux_zero.cpp

    r2 r278  
    11/*
    2  * Copyright 1997-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * Copyright 2009 Red Hat, Inc.
    44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     
    1818 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1919 *
    20  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    21  * CA 95054 USA or visit www.sun.com if you need additional information or
    22  * have any questions.
     20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     21 * or visit www.oracle.com if you need additional information or have any
     22 * questions.
    2323 *
    2424 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/assembler_solaris_sparc.cpp

    r2 r278  
    11/*
    2  * Copyright 1999-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/atomic_solaris_sparc.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 1999-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/globals_solaris_sparc.hpp

    r2 r278  
    11/*
    2  * Copyright 2000-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/orderAccess_solaris_sparc.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 2003-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    4343
    4444inline void OrderAccess::release() {
    45   jint* dummy = (jint*)&dummy;
    46   __asm__ volatile("stw %%g0, [%0]" : : "r" (dummy) : "memory");
     45  jint* local_dummy = (jint*)&local_dummy;
     46  __asm__ volatile("stw %%g0, [%0]" : : "r" (local_dummy) : "memory");
    4747}
    4848
     
    5858
    5959inline void OrderAccess::release() {
    60   dummy = 0;
     60  // Avoid hitting the same cache-line from
     61  // different threads.
     62  volatile jint local_dummy = 0;
    6163}
    6264
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/os_solaris_sparc.cpp

    r2 r278  
    11/*
    2  * Copyright 1999-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    588588            uc->uc_mcontext.gregs[REG_PC],
    589589            uc->uc_mcontext.gregs[REG_nPC]);
     590
     591  st->cr();
     592  st->cr();
     593
     594  st->print_cr("Register to memory mapping:");
     595  st->cr();
     596
     597  // this is only for the "general purpose" registers
     598
     599  st->print_cr("O0=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_O0]);
     600  print_location(st, uc->uc_mcontext.gregs[REG_O0]);
     601  st->cr();
     602  st->print_cr("O1=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_O1]);
     603  print_location(st, uc->uc_mcontext.gregs[REG_O1]);
     604  st->cr();
     605  st->print_cr("O2=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_O2]);
     606  print_location(st, uc->uc_mcontext.gregs[REG_O2]);
     607  st->cr();
     608  st->print_cr("O3=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_O3]);
     609  print_location(st, uc->uc_mcontext.gregs[REG_O3]);
     610  st->cr();
     611  st->print_cr("O4=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_O4]);
     612  print_location(st, uc->uc_mcontext.gregs[REG_O4]);
     613  st->cr();
     614  st->print_cr("O5=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_O5]);
     615  print_location(st, uc->uc_mcontext.gregs[REG_O5]);
     616  st->cr();
     617  st->print_cr("O6=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_O6]);
     618  print_location(st, uc->uc_mcontext.gregs[REG_O6]);
     619  st->cr();
     620  st->print_cr("O7=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_O7]);
     621  print_location(st, uc->uc_mcontext.gregs[REG_O7]);
     622  st->cr();
     623
     624  st->print_cr("G1=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_G1]);
     625  print_location(st, uc->uc_mcontext.gregs[REG_G1]);
     626  st->cr();
     627  st->print_cr("G2=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_G2]);
     628  print_location(st, uc->uc_mcontext.gregs[REG_G2]);
     629  st->cr();
     630  st->print_cr("G3=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_G3]);
     631  print_location(st, uc->uc_mcontext.gregs[REG_G3]);
     632  st->cr();
     633  st->print_cr("G4=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_G4]);
     634  print_location(st, uc->uc_mcontext.gregs[REG_G4]);
     635  st->cr();
     636  st->print_cr("G5=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_G5]);
     637  print_location(st, uc->uc_mcontext.gregs[REG_G5]);
     638  st->cr();
     639  st->print_cr("G6=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_G6]);
     640  print_location(st, uc->uc_mcontext.gregs[REG_G6]);
     641  st->cr();
     642  st->print_cr("G7=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_G7]);
     643  print_location(st, uc->uc_mcontext.gregs[REG_G7]);
     644
    590645  st->cr();
    591646  st->cr();
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/os_solaris_sparc.hpp

    r2 r278  
    11/*
    2  * Copyright 1999-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/prefetch_solaris_sparc.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 2003-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/solaris_sparc.ad

    r2 r278  
    11//
    2 // Copyright 1999-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2// Copyright (c) 1999, 2007, Oracle and/or its affiliates. All rights reserved.
    33// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44//
     
    1717// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818//
    19 // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 // CA 95054 USA or visit www.sun.com if you need additional information or
    21 // have any questions.
     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
     21// questions.
    2222//
    2323
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/solaris_sparc.il

    r2 r278  
    11//
    2 // Copyright 2002-2005 Sun Microsystems, Inc.  All Rights Reserved.
     2// Copyright (c) 2002, 2005, Oracle and/or its affiliates. All rights reserved.
    33// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44//
     
    1717// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818//
    19 // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 // CA 95054 USA or visit www.sun.com if you need additional information or
    21 // have any questions.
     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
     21// questions.
    2222// 
    2323//
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/solaris_sparc.s

    r2 r278  
    11!!
    2 !! Copyright 2005-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2!! Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
    33!! DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44!!
     
    1717!! Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818!!
    19 !! Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 !! CA 95054 USA or visit www.sun.com if you need additional information or
    21 !! have any questions.
     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
     21!! questions.
    2222!!
    2323
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/threadLS_solaris_sparc.cpp

    r2 r278  
    11/*
    2  * Copyright 1998-2003 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1998, 2003, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/threadLS_solaris_sparc.hpp

    r2 r278  
    11/*
    2  * Copyright 1998-2005 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1998, 2005, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/thread_solaris_sparc.cpp

    r2 r278  
    11/*
    2  * Copyright 2003-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    141141  return true;
    142142}
     143
     144void JavaThread::cache_global_variables() { }
     145
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/thread_solaris_sparc.hpp

    r2 r278  
    11/*
    2  * Copyright 1998-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1998, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/vmStructs_solaris_sparc.hpp

    r2 r278  
    11/*
    2  * Copyright 2000-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_sparc/vm/vm_version_solaris_sparc.cpp

    r2 r278  
    11/*
    2  * Copyright 2006-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2006, 2009, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/assembler_solaris_x86.cpp

    r2 r278  
    11/*
    2  * Copyright 1999-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/atomic_solaris_x86.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 1999-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    4848// For gcc - implementation is just below.
    4949
    50 extern "C" jint _Atomic_add(jint add_value, volatile jint* dest, int mp);
    51 extern "C" jint _Atomic_xchg(jint exchange_value, volatile jint* dest);
    52 extern "C" jint _Atomic_cmpxchg(jint exchange_value, volatile jint* dest, jint compare_value, int mp);
    53 extern "C" jlong _Atomic_cmpxchg_long(jlong exchange_value, volatile jlong* dest, jlong compare_value, int mp);
     50// The lock prefix can be omitted for certain instructions on uniprocessors; to
     51// facilitate this, os::is_MP() is passed as an additional argument.  64-bit
     52// processors are assumed to be multi-threaded and/or multi-core, so the extra
     53// argument is unnecessary.
     54#ifndef _LP64
     55#define IS_MP_DECL() , int is_mp
     56#define IS_MP_ARG()  , (int) os::is_MP()
     57#else
     58#define IS_MP_DECL()
     59#define IS_MP_ARG()
     60#endif // _LP64
     61
     62extern "C" {
     63  jint _Atomic_add(jint add_value, volatile jint* dest IS_MP_DECL());
     64  jint _Atomic_xchg(jint exchange_value, volatile jint* dest);
     65  jint _Atomic_cmpxchg(jint exchange_value, volatile jint* dest,
     66                       jint compare_value IS_MP_DECL());
     67  jlong _Atomic_cmpxchg_long(jlong exchange_value, volatile jlong* dest,
     68                             jlong compare_value IS_MP_DECL());
     69}
    5470
    5571inline jint     Atomic::add    (jint     add_value, volatile jint*     dest) {
    56   return _Atomic_add(add_value, dest, (int) os::is_MP());
     72  return _Atomic_add(add_value, dest IS_MP_ARG());
     73}
     74
     75inline jint     Atomic::xchg       (jint     exchange_value, volatile jint*     dest) {
     76  return _Atomic_xchg(exchange_value, dest);
    5777}
    5878
    5979inline jint     Atomic::cmpxchg    (jint     exchange_value, volatile jint*     dest, jint     compare_value) {
    60   return _Atomic_cmpxchg(exchange_value, dest, compare_value, (int) os::is_MP());
     80  return _Atomic_cmpxchg(exchange_value, dest, compare_value IS_MP_ARG());
    6181}
    6282
    6383inline jlong    Atomic::cmpxchg    (jlong    exchange_value, volatile jlong*    dest, jlong    compare_value) {
    64   return _Atomic_cmpxchg_long(exchange_value, dest, compare_value, (int) os::is_MP());
     84  return _Atomic_cmpxchg_long(exchange_value, dest, compare_value IS_MP_ARG());
    6585}
    6686
     
    6989inline void Atomic::store    (jlong    store_value, jlong*             dest) { *dest = store_value; }
    7090inline void Atomic::store    (jlong    store_value, volatile jlong*    dest) { *dest = store_value; }
    71 extern "C" jlong _Atomic_add_long(jlong add_value, volatile jlong* dest, int mp);
     91extern "C" jlong _Atomic_add_long(jlong add_value, volatile jlong* dest);
    7292extern "C" jlong _Atomic_xchg_long(jlong exchange_value, volatile jlong* dest);
    7393
    7494inline intptr_t Atomic::add_ptr(intptr_t add_value, volatile intptr_t* dest) {
    75   return (intptr_t)_Atomic_add_long((jlong)add_value, (volatile jlong*)dest, (int) os::is_MP());
     95  return (intptr_t)_Atomic_add_long((jlong)add_value, (volatile jlong*)dest);
    7696}
    7797
    7898inline void*    Atomic::add_ptr(intptr_t add_value, volatile void*     dest) {
    79   return (void*)_Atomic_add_long((jlong)add_value, (volatile jlong*)dest, (int) os::is_MP());
    80 }
    81 
    82 inline jint     Atomic::xchg    (jint     exchange_value, volatile jint*     dest) {
    83   return _Atomic_xchg(exchange_value, dest);
     99  return (void*)_Atomic_add_long((jlong)add_value, (volatile jlong*)dest);
    84100}
    85101
     
    93109
    94110inline intptr_t Atomic::cmpxchg_ptr(intptr_t exchange_value, volatile intptr_t* dest, intptr_t compare_value) {
    95   return (intptr_t)_Atomic_cmpxchg_long((jlong)exchange_value, (volatile jlong*)dest, (jlong)compare_value, (int) os::is_MP());
     111  return (intptr_t)_Atomic_cmpxchg_long((jlong)exchange_value, (volatile jlong*)dest, (jlong)compare_value);
    96112}
    97113
    98114inline void*    Atomic::cmpxchg_ptr(void*    exchange_value, volatile void*     dest, void*    compare_value) {
    99   return (void*)_Atomic_cmpxchg_long((jlong)exchange_value, (volatile jlong*)dest, (jlong)compare_value, (int) os::is_MP());
     115  return (void*)_Atomic_cmpxchg_long((jlong)exchange_value, (volatile jlong*)dest, (jlong)compare_value);
    100116}
    101117
     
    110126inline void*    Atomic::add_ptr(intptr_t add_value, volatile void*     dest) {
    111127  return (void*)add((jint)add_value, (volatile jint*)dest);
    112 }
    113 
    114 inline jint     Atomic::xchg    (jint     exchange_value, volatile jint*     dest) {
    115   // We noticed a CC5.5 bug (4894807), so keep calling the stub just to be safe.
    116   // Will use the inline template version after 4894807 is fixed.
    117   // return _Atomic_xchg(exchange_value, dest);
    118   return (*os::atomic_xchg_func)(exchange_value, dest);
    119128}
    120129
     
    180189
    181190  inline jint _Atomic_xchg(jint exchange_value, volatile jint* dest) {
    182 
    183     // 32bit version originally did nothing!!
    184 
    185191    __asm__ __volatile__ ("xchgl (%2),%0"
    186192                          : "=r" (exchange_value)
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/bytes_solaris_x86.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 1998-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1998, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/copy_solaris_x86.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 2003-2004 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/globals_solaris_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 2000-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    3232define_pd_global(uintx,JVMInvokeMethodSlack,     8*K);
    3333#else
    34 // ThreadStackSize 320 allows TaggedStackInterpreter and a couple of test cases
    35 // to run while keeping the number of threads that can be created high.
     34// ThreadStackSize 320 allows a couple of test cases to run while
     35// keeping the number of threads that can be created high.
    3636define_pd_global(intx, ThreadStackSize,          320);
    3737define_pd_global(intx, VMThreadStackSize,        512);
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/orderAccess_solaris_x86.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 2003-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    4141
    4242inline void OrderAccess::release() {
    43   dummy = 0;
     43  // Avoid hitting the same cache-line from
     44  // different threads.
     45  volatile jint local_dummy = 0;
    4446}
    4547
     
    5456extern "C" {
    5557  inline void _OrderAccess_acquire() {
    56     volatile intptr_t dummy;
     58    volatile intptr_t local_dummy;
    5759#ifdef AMD64
    58     __asm__ volatile ("movq 0(%%rsp), %0" : "=r" (dummy) : : "memory");
     60    __asm__ volatile ("movq 0(%%rsp), %0" : "=r" (local_dummy) : : "memory");
    5961#else
    60     __asm__ volatile ("movl 0(%%esp),%0" : "=r" (dummy) : : "memory");
     62    __asm__ volatile ("movl 0(%%esp),%0" : "=r" (local_dummy) : : "memory");
    6163#endif // AMD64
    6264  }
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp

    r2 r278  
    11/*
    2  * Copyright 1999-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    720720  ucontext_t *uc = (ucontext_t*)context;
    721721  st->print_cr("Registers:");
     722
     723  // this is horrendously verbose but the layout of the registers in the
     724  // context does not match how we defined our abstract Register set, so
     725  // we can't just iterate through the gregs area
     726
    722727#ifdef AMD64
    723728  st->print(  "RAX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RAX]);
     
    731736  st->print(", RDI=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RDI]);
    732737  st->cr();
    733   st->print(", R8=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R8]);
     738  st->print(  "R8=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R8]);
    734739  st->print(", R9=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R9]);
    735740  st->print(", R10=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R10]);
    736741  st->print(", R11=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R11]);
    737   st->print(", R12=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R12]);
     742  st->cr();
     743  st->print(  "R12=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R12]);
    738744  st->print(", R13=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R13]);
    739745  st->print(", R14=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R14]);
     
    742748  st->print(  "RIP=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RIP]);
    743749  st->print(", RFLAGS=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RFL]);
     750
     751  st->cr();
     752  st->cr();
     753
     754  st->print_cr("Register to memory mapping:");
     755  st->cr();
     756
     757  // this is only for the "general purpose" registers
     758
     759  st->print_cr("RAX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RAX]);
     760  print_location(st, uc->uc_mcontext.gregs[REG_RAX]);
     761  st->cr();
     762  st->print_cr("RBX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RBX]);
     763  print_location(st, uc->uc_mcontext.gregs[REG_RBX]);
     764  st->cr();
     765  st->print_cr("RCX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RCX]);
     766  print_location(st, uc->uc_mcontext.gregs[REG_RCX]);
     767  st->cr();
     768  st->print_cr("RDX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RDX]);
     769  print_location(st, uc->uc_mcontext.gregs[REG_RDX]);
     770  st->cr();
     771  st->print_cr("RSP=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RSP]);
     772  print_location(st, uc->uc_mcontext.gregs[REG_RSP]);
     773  st->cr();
     774  st->print_cr("RBP=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RBP]);
     775  print_location(st, uc->uc_mcontext.gregs[REG_RSP]);
     776  st->cr();
     777  st->print_cr("RSI=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RSI]);
     778  print_location(st, uc->uc_mcontext.gregs[REG_RSI]);
     779  st->cr();
     780  st->print_cr("RDI=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_RDI]);
     781  print_location(st, uc->uc_mcontext.gregs[REG_RDI]);
     782  st->cr();
     783  st->print_cr("R8 =" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R8]);
     784  print_location(st, uc->uc_mcontext.gregs[REG_R8]);
     785  st->cr();
     786  st->print_cr("R9 =" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R9]);
     787  print_location(st, uc->uc_mcontext.gregs[REG_R9]);
     788  st->cr();
     789  st->print_cr("R10=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R10]);
     790  print_location(st, uc->uc_mcontext.gregs[REG_R10]);
     791  st->cr();
     792  st->print_cr("R11=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R11]);
     793  print_location(st, uc->uc_mcontext.gregs[REG_R11]);
     794  st->cr();
     795  st->print_cr("R12=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R12]);
     796  print_location(st, uc->uc_mcontext.gregs[REG_R12]);
     797  st->cr();
     798  st->print_cr("R13=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R13]);
     799  print_location(st, uc->uc_mcontext.gregs[REG_R13]);
     800  st->cr();
     801  st->print_cr("R14=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R14]);
     802  print_location(st, uc->uc_mcontext.gregs[REG_R14]);
     803  st->cr();
     804  st->print_cr("R15=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_R15]);
     805  print_location(st, uc->uc_mcontext.gregs[REG_R15]);
     806
    744807#else
    745808  st->print(  "EAX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[EAX]);
     
    755818  st->print(  "EIP=" INTPTR_FORMAT, uc->uc_mcontext.gregs[EIP]);
    756819  st->print(", EFLAGS=" INTPTR_FORMAT, uc->uc_mcontext.gregs[EFL]);
     820
     821  st->cr();
     822  st->cr();
     823
     824  st->print_cr("Register to memory mapping:");
     825  st->cr();
     826
     827  // this is only for the "general purpose" registers
     828
     829  st->print_cr("EAX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[EAX]);
     830  print_location(st, uc->uc_mcontext.gregs[EAX]);
     831  st->cr();
     832  st->print_cr("EBX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[EBX]);
     833  print_location(st, uc->uc_mcontext.gregs[EBX]);
     834  st->cr();
     835  st->print_cr("ECX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[ECX]);
     836  print_location(st, uc->uc_mcontext.gregs[ECX]);
     837  st->cr();
     838  st->print_cr("EDX=" INTPTR_FORMAT, uc->uc_mcontext.gregs[EDX]);
     839  print_location(st, uc->uc_mcontext.gregs[EDX]);
     840  st->cr();
     841  st->print_cr("ESP=" INTPTR_FORMAT, uc->uc_mcontext.gregs[UESP]);
     842  print_location(st, uc->uc_mcontext.gregs[UESP]);
     843  st->cr();
     844  st->print_cr("EBP=" INTPTR_FORMAT, uc->uc_mcontext.gregs[EBP]);
     845  print_location(st, uc->uc_mcontext.gregs[EBP]);
     846  st->cr();
     847  st->print_cr("ESI=" INTPTR_FORMAT, uc->uc_mcontext.gregs[ESI]);
     848  print_location(st, uc->uc_mcontext.gregs[ESI]);
     849  st->cr();
     850  st->print_cr("EDI=" INTPTR_FORMAT, uc->uc_mcontext.gregs[EDI]);
     851  print_location(st, uc->uc_mcontext.gregs[EDI]);
     852
    757853#endif // AMD64
    758854  st->cr();
     
    773869}
    774870
     871
    775872#ifdef AMD64
    776873void os::Solaris::init_thread_fpu_state(void) {
     
    861958add_func_t*          os::atomic_add_func          = os::atomic_add_bootstrap;
    862959
    863 extern "C" _solaris_raw_setup_fpu(address ptr);
     960extern "C" void _solaris_raw_setup_fpu(address ptr);
    864961void os::setup_fpu() {
    865962  address fpu_cntrl = StubRoutines::addr_fpu_cntrl_wrd_std();
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/os_solaris_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 1999-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/prefetch_solaris_x86.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/solaris_x86_32.ad

    r2 r278  
    11//
    2 // Copyright 1999-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2// Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
    33// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44//
     
    1717// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818//
    19 // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 // CA 95054 USA or visit www.sun.com if you need additional information or
    21 // have any questions.
     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
     21// questions.
    2222//
    2323//
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/solaris_x86_32.il

    r2 r278  
    11//
    2 // Copyright 2003-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2// Copyright (c) 2003, 2009, Oracle and/or its affiliates. All rights reserved.
    33// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44//
     
    1717// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818//
    19 // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 // CA 95054 USA or visit www.sun.com if you need additional information or
    21 // have any questions.
     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
     21// questions.
    2222// 
    2323//
     
    5151      movl     %eax, %ecx
    5252      cmpl     $0, 8(%esp)     // MP test
    53       je       1f
    54       lock
    55 1:    xaddl    %eax, (%edx)
    56       addl     %ecx, %eax
     53      jne      1f
     54      xaddl    %eax, (%edx)
     55      jmp      2f
     561:    lock
     57      xaddl    %eax, (%edx)
     582:    addl     %ecx, %eax
    5759      .end
    5860
     
    7375      movl     4(%esp), %edx   // dest
    7476      cmp      $0, 12(%esp)    // MP test
    75       je       1f
    76       lock
    77 1:    cmpxchgl %ecx, (%edx)
     77      jne      1f
     78      cmpxchgl %ecx, (%edx)
     79      jmp      2f
     801:    lock
     81      cmpxchgl %ecx, (%edx)
     822:
    7883      .end
    7984
     
    9196      movl     12(%esp), %ecx  // exchange_high (high)
    9297      cmp      $0, 28(%esp)    // MP test
    93       je       1f
    94       lock
    95 1:    cmpxchg8b (%edi)
    96       popl     %edi
     98      jne      1f
     99      cmpxchg8b (%edi)
     100      jmp      2f
     1011:    lock
     102      cmpxchg8b (%edi)
     1032:    popl     %edi
    97104      popl     %ebx
    98105      .end
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/solaris_x86_32.s

    r2 r278  
    11//
    2 // Copyright 2004-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2// Copyright (c) 2004, 2007, Oracle and/or its affiliates. All rights reserved.
    33// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44//
     
    1717// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818//
    19 // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 // CA 95054 USA or visit www.sun.com if you need additional information or
    21 // have any questions.
     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
     21// questions.
    2222//
    2323
     
    155155        addl     %esi,%edi
    1561564:      movl     %eax,%ecx            / byte count less prefix
    157         andl     $3,%ecx              / suffix byte count
     1575:      andl     $3,%ecx              / suffix byte count
    158158        jz       7f                   / no suffix
    159159        / copy suffix
    160 5:      xorl     %eax,%eax
     160        xorl     %eax,%eax
    1611616:      movb     (%esi,%eax,1),%dl
    162162        movb     %dl,(%edi,%eax,1)
     
    1931933:      rep;     smovl
    1941944:      movl     %eax,%ecx            / byte count
    195         andl     $3,%ecx              / suffix byte count
     1955:      andl     $3,%ecx              / suffix byte count
    196196        jz       7f                   / no suffix
    197197        / copy suffix
    198 5:      subl     %esi,%edi
     198        subl     %esi,%edi
    199199        addl     $3,%esi
    2002006:      movb     (%esi),%dl
     
    2472473:      rep;     smovl
    2482484:      movl     %eax,%ecx
    249         andl     $3,%ecx
     2495:      andl     $3,%ecx
    250250        jz       7f
    251251        / copy suffix
    252 5:      xorl     %eax,%eax
     252        xorl     %eax,%eax
    2532536:      movb     (%esi,%eax,1),%dl
    254254        movb     %dl,(%edi,%eax,1)
     
    283283        addl     %esi,%edi
    2842844:      movl     %eax,%ecx
    285         andl     $3,%ecx
     2855:      andl     $3,%ecx
    286286        jz       7f
    287 5:      subl     %esi,%edi
     287        subl     %esi,%edi
    288288        addl     $3,%esi
    2892896:      movb     (%esi),%dl
     
    319319        jz       1f                   / no prefix
    320320        / copy prefix
     321        subl     $1,%ecx
     322        jl       5f                   / zero count
    321323        movw     (%esi),%dx
    322324        movw     %dx,(%edi)
    323325        addl     %eax,%esi            / %eax == 2
    324326        addl     %eax,%edi
    325         subl     $1,%ecx
    3263271:      movl     %ecx,%eax            / word count less prefix
    327328        sarl     %ecx                 / dword count
     
    483484        .=.+10
    4844852:      subl     %esi,%edi
     486        jmp      4f
    485487        .align   16
    4864883:      movl     (%esi),%edx
    487489        movl     %edx,(%edi,%esi,1)
    488490        addl     $4,%esi
    489         subl     $1,%ecx
    490         jnz      3b
     4914:      subl     $1,%ecx
     492        jge      3b
    491493        popl     %edi
    492494        popl     %esi
     
    496498        leal     -4(%edi,%ecx,4),%edi / to + count*4 - 4
    497499        cmpl     $32,%ecx
    498         ja       3f                   / > 32 dwords
     500        ja       4f                   / > 32 dwords
    499501        subl     %eax,%edi            / eax == from + count*4 - 4
     502        jmp      3f
    500503        .align   16
    5015042:      movl     (%eax),%edx
    502505        movl     %edx,(%edi,%eax,1)
    503506        subl     $4,%eax
    504         subl     $1,%ecx
    505         jnz      2b
     5073:      subl     $1,%ecx
     508        jge      2b
    506509        cld
    507510        popl     %edi
    508511        popl     %esi
    509512        ret
    510 3:      movl     %eax,%esi            / from + count*4 - 4
     5134:      movl     %eax,%esi            / from + count*4 - 4
    511514        rep;     smovl
    512515        cld
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/solaris_x86_64.ad

    r2 r278  
    11//
    2 // Copyright 2004-2006 Sun Microsystems, Inc.  All Rights Reserved.
     2// Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
    33// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44//
     
    1717// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818//
    19 // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 // CA 95054 USA or visit www.sun.com if you need additional information or
    21 // have any questions.
     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
     21// questions.
    2222//
    2323//
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/solaris_x86_64.il

    r2 r278  
    11//
    2 // Copyright 2004-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2// Copyright (c) 2004, 2009, Oracle and/or its affiliates. All rights reserved.
    33// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44//
     
    1717// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818//
    19 // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 // CA 95054 USA or visit www.sun.com if you need additional information or
    21 // have any questions.
     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
     21// questions.
    2222// 
    2323//
     
    3838
    3939  // Support for jint Atomic::add(jint add_value, volatile jint* dest)
    40   // An additional bool (os::is_MP()) is passed as the last argument.
    41       .inline _Atomic_add,3
     40      .inline _Atomic_add,2
    4241      movl     %edi, %eax      // save add_value for return
    43       testl    %edx, %edx      // MP test
    44       je       1f
    4542      lock
    46 1:    xaddl    %edi, (%rsi)
     43      xaddl    %edi, (%rsi)
    4744      addl     %edi, %eax
    4845      .end
    4946
    5047  // Support for jlong Atomic::add(jlong add_value, volatile jlong* dest)
    51   // An additional bool (os::is_MP()) is passed as the last argument.
    52       .inline _Atomic_add_long,3
     48      .inline _Atomic_add_long,2
    5349      movq     %rdi, %rax      // save add_value for return
    54       testq    %rdx, %rdx      // MP test
    55       je       1f
    5650      lock
    57 1:    xaddq    %rdi, (%rsi)
     51      xaddq    %rdi, (%rsi)
    5852      addq     %rdi, %rax
    5953      .end
     
    7468  //                                  volatile jint *dest,
    7569  //                                  jint compare_value)
    76   // An additional bool (os::is_MP()) is passed as the last argument.
    77       .inline _Atomic_cmpxchg,4
     70      .inline _Atomic_cmpxchg,3
    7871      movl     %edx, %eax      // compare_value
    79       testl    %ecx, %ecx      // MP test
    80       je       1f
    8172      lock
    82 1:    cmpxchgl %edi, (%rsi)
     73      cmpxchgl %edi, (%rsi)
    8374      .end
    8475
     
    8677  //                                   volatile jlong* dest,
    8778  //                                   jlong compare_value)
    88   // An additional bool (os::is_MP()) is passed as the last argument.
    89       .inline _Atomic_cmpxchg_long,6
     79      .inline _Atomic_cmpxchg_long,3
    9080      movq     %rdx, %rax      // compare_value
    91       testq    %rcx, %rcx      // MP test
    92       je       1f
    9381      lock
    94 1:    cmpxchgq %rdi, (%rsi)
     82      cmpxchgq %rdi, (%rsi)
    9583      .end
    9684
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/solaris_x86_64.s

    r2 r278  
    11/
    2 / Copyright 2004-2005 Sun Microsystems, Inc.  All Rights Reserved.
     2/ Copyright (c) 2004, 2005, Oracle and/or its affiliates. All rights reserved.
    33/ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44/
     
    1717/ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818/
    19 / Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 / CA 95054 USA or visit www.sun.com if you need additional information or
    21 / have any questions.
     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
     21/ questions.
    2222/
    2323
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/threadLS_solaris_x86.cpp

    r2 r278  
    11/*
    2  * Copyright 1998-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1998, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/threadLS_solaris_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 1998-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1998, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/thread_solaris_x86.cpp

    r2 r278  
    11/*
    2  * Copyright 2003-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    8383
    8484}
     85
     86void JavaThread::cache_global_variables() { }
     87
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/thread_solaris_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 1999-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/vmStructs_solaris_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 2000-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/solaris_x86/vm/vm_version_solaris_x86.cpp

    r2 r278  
    11/*
    2  * Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/assembler_windows_x86.cpp

    r2 r278  
    11/*
    2  * Copyright 1999-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/atomic_windows_x86.inline.hpp

    r48 r278  
    11/*
    2  * Copyright 1999-2005 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2005, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/bytes_windows_x86.inline.hpp

    r48 r278  
    11/*
    2  * Copyright 1998 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/copy_windows_x86.inline.hpp

    r48 r278  
    11/*
    2  * Copyright 2003-2004 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/globals_windows_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 2000-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/orderAccess_windows_x86.inline.hpp

    r48 r278  
    11/*
    2  * Copyright 2003-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    4848inline void OrderAccess::release() {
    4949  // A volatile store has release semantics.
    50   dummy = 0;
     50  volatile jint local_dummy = 0;
    5151}
    5252
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/os_windows_x86.cpp

    r58 r278  
    11/*
    2  * Copyright 1999-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    396396  st->print_cr("Registers:");
    397397#ifdef AMD64
    398   st->print(  "EAX=" INTPTR_FORMAT, uc->Rax);
    399   st->print(", EBX=" INTPTR_FORMAT, uc->Rbx);
    400   st->print(", ECX=" INTPTR_FORMAT, uc->Rcx);
    401   st->print(", EDX=" INTPTR_FORMAT, uc->Rdx);
    402   st->cr();
    403   st->print(  "ESP=" INTPTR_FORMAT, uc->Rsp);
    404   st->print(", EBP=" INTPTR_FORMAT, uc->Rbp);
    405   st->print(", ESI=" INTPTR_FORMAT, uc->Rsi);
    406   st->print(", EDI=" INTPTR_FORMAT, uc->Rdi);
    407   st->cr();
    408   st->print(  "EIP=" INTPTR_FORMAT, uc->Rip);
     398  st->print(  "RAX=" INTPTR_FORMAT, uc->Rax);
     399  st->print(", RBX=" INTPTR_FORMAT, uc->Rbx);
     400  st->print(", RCX=" INTPTR_FORMAT, uc->Rcx);
     401  st->print(", RDX=" INTPTR_FORMAT, uc->Rdx);
     402  st->cr();
     403  st->print(  "RSP=" INTPTR_FORMAT, uc->Rsp);
     404  st->print(", RBP=" INTPTR_FORMAT, uc->Rbp);
     405  st->print(", RSI=" INTPTR_FORMAT, uc->Rsi);
     406  st->print(", RDI=" INTPTR_FORMAT, uc->Rdi);
     407  st->cr();
     408  st->print(  "R8=" INTPTR_FORMAT,  uc->R8);
     409  st->print(", R9=" INTPTR_FORMAT,  uc->R9);
     410  st->print(", R10=" INTPTR_FORMAT, uc->R10);
     411  st->print(", R11=" INTPTR_FORMAT, uc->R11);
     412  st->cr();
     413  st->print(  "R12=" INTPTR_FORMAT, uc->R12);
     414  st->print(", R13=" INTPTR_FORMAT, uc->R13);
     415  st->print(", R14=" INTPTR_FORMAT, uc->R14);
     416  st->print(", R15=" INTPTR_FORMAT, uc->R15);
     417  st->cr();
     418  st->print(  "RIP=" INTPTR_FORMAT, uc->Rip);
    409419  st->print(", EFLAGS=" INTPTR_FORMAT, uc->EFlags);
     420
     421  st->cr();
     422  st->cr();
     423
     424  st->print_cr("Register to memory mapping:");
     425  st->cr();
     426
     427  // this is only for the "general purpose" registers
     428
     429  st->print_cr("RAX=" INTPTR_FORMAT, uc->Rax);
     430  print_location(st, uc->Rax);
     431  st->cr();
     432  st->print_cr("RBX=" INTPTR_FORMAT, uc->Rbx);
     433  print_location(st, uc->Rbx);
     434  st->cr();
     435  st->print_cr("RCX=" INTPTR_FORMAT, uc->Rcx);
     436  print_location(st, uc->Rcx);
     437  st->cr();
     438  st->print_cr("RDX=" INTPTR_FORMAT, uc->Rdx);
     439  print_location(st, uc->Rdx);
     440  st->cr();
     441  st->print_cr("RSP=" INTPTR_FORMAT, uc->Rsp);
     442  print_location(st, uc->Rsp);
     443  st->cr();
     444  st->print_cr("RBP=" INTPTR_FORMAT, uc->Rbp);
     445  print_location(st, uc->Rbp);
     446  st->cr();
     447  st->print_cr("RSI=" INTPTR_FORMAT, uc->Rsi);
     448  print_location(st, uc->Rsi);
     449  st->cr();
     450  st->print_cr("RDI=" INTPTR_FORMAT, uc->Rdi);
     451  print_location(st, uc->Rdi);
     452  st->cr();
     453  st->print_cr("R8 =" INTPTR_FORMAT, uc->R8);
     454  print_location(st, uc->R8);
     455  st->cr();
     456  st->print_cr("R9 =" INTPTR_FORMAT, uc->R9);
     457  print_location(st, uc->R9);
     458  st->cr();
     459  st->print_cr("R10=" INTPTR_FORMAT, uc->R10);
     460  print_location(st, uc->R10);
     461  st->cr();
     462  st->print_cr("R11=" INTPTR_FORMAT, uc->R11);
     463  print_location(st, uc->R11);
     464  st->cr();
     465  st->print_cr("R12=" INTPTR_FORMAT, uc->R12);
     466  print_location(st, uc->R12);
     467  st->cr();
     468  st->print_cr("R13=" INTPTR_FORMAT, uc->R13);
     469  print_location(st, uc->R13);
     470  st->cr();
     471  st->print_cr("R14=" INTPTR_FORMAT, uc->R14);
     472  print_location(st, uc->R14);
     473  st->cr();
     474  st->print_cr("R15=" INTPTR_FORMAT, uc->R15);
     475  print_location(st, uc->R15);
    410476#else
    411477  st->print(  "EAX=" INTPTR_FORMAT, uc->Eax);
     
    421487  st->print(  "EIP=" INTPTR_FORMAT, uc->Eip);
    422488  st->print(", EFLAGS=" INTPTR_FORMAT, uc->EFlags);
     489
     490  st->cr();
     491  st->cr();
     492
     493  st->print_cr("Register to memory mapping:");
     494  st->cr();
     495
     496  // this is only for the "general purpose" registers
     497
     498  st->print_cr("EAX=" INTPTR_FORMAT, uc->Eax);
     499  print_location(st, uc->Eax);
     500  st->cr();
     501  st->print_cr("EBX=" INTPTR_FORMAT, uc->Ebx);
     502  print_location(st, uc->Ebx);
     503  st->cr();
     504  st->print_cr("ECX=" INTPTR_FORMAT, uc->Ecx);
     505  print_location(st, uc->Ecx);
     506  st->cr();
     507  st->print_cr("EDX=" INTPTR_FORMAT, uc->Edx);
     508  print_location(st, uc->Edx);
     509  st->cr();
     510  st->print_cr("ESP=" INTPTR_FORMAT, uc->Esp);
     511  print_location(st, uc->Esp);
     512  st->cr();
     513  st->print_cr("EBP=" INTPTR_FORMAT, uc->Ebp);
     514  print_location(st, uc->Ebp);
     515  st->cr();
     516  st->print_cr("ESI=" INTPTR_FORMAT, uc->Esi);
     517  print_location(st, uc->Esi);
     518  st->cr();
     519  st->print_cr("EDI=" INTPTR_FORMAT, uc->Edi);
     520  print_location(st, uc->Edi);
    423521#endif // AMD64
    424522  st->cr();
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/os_windows_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 1999-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/prefetch_windows_x86.inline.hpp

    r2 r278  
    11/*
    2  * Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/threadLS_windows_x86.cpp

    r2 r278  
    11/*
    2  * Copyright 1998-2003 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1998, 2003, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/threadLS_windows_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 1998-2003 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1998, 2003, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/thread_windows_x86.cpp

    r2 r278  
    11/*
    2  * Copyright 2003-2005 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
     
    8585  return false;
    8686}
     87
     88void JavaThread::cache_global_variables() { }
     89
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/thread_windows_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 1999-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1999, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/unwind_windows_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 2004-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2004, 2009, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/vmStructs_windows_x86.hpp

    r2 r278  
    11/*
    2  * Copyright 2000-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/vm_version_windows_x86.cpp

    r2 r278  
    11/*
    2  * Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     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
     21 * questions.
    2222 *
    2323 */
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/windows_x86_32.ad

    r2 r278  
    11//
    2 // Copyright 1999-2006 Sun Microsystems, Inc.  All Rights Reserved.
     2// Copyright (c) 1999, 2006, Oracle and/or its affiliates. All rights reserved.
    33// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44//
     
    1717// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818//
    19 // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 // CA 95054 USA or visit www.sun.com if you need additional information or
    21 // have any questions.
     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
     21// questions.
    2222//
    2323//
  • trunk/openjdk/hotspot/src/os_cpu/windows_x86/vm/windows_x86_64.ad

    r2 r278  
    11//
    2 // Copyright 2003-2006 Sun Microsystems, Inc.  All Rights Reserved.
     2// Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved.
    33// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44//
     
    1717// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818//
    19 // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 // CA 95054 USA or visit www.sun.com if you need additional information or
    21 // have any questions.
     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
     21// questions.
    2222//
    2323//
Note: See TracChangeset for help on using the changeset viewer.