hotspot/src/share/vm/prims/unsafe.cpp
changeset 7397 5b173b4ca846
parent 5547 f4b087cbb361
child 7885 c02b05ba16a1
equal deleted inserted replaced
7396:518b01b064ff 7397:5b173b4ca846
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  *
    22  *
    23  */
    23  */
    24 
    24 
       
    25 #include "precompiled.hpp"
       
    26 #include "classfile/vmSymbols.hpp"
       
    27 #include "memory/allocation.inline.hpp"
       
    28 #include "prims/jni.h"
       
    29 #include "prims/jvm.h"
       
    30 #include "runtime/globals.hpp"
       
    31 #include "runtime/interfaceSupport.hpp"
       
    32 #include "runtime/reflection.hpp"
       
    33 #include "runtime/reflectionCompat.hpp"
       
    34 #include "runtime/synchronizer.hpp"
       
    35 #include "services/threadService.hpp"
       
    36 #include "utilities/copy.hpp"
       
    37 #include "utilities/dtrace.hpp"
       
    38 
    25 /*
    39 /*
    26  *      Implementation of class sun.misc.Unsafe
    40  *      Implementation of class sun.misc.Unsafe
    27  */
    41  */
    28 
       
    29 #include "incls/_precompiled.incl"
       
    30 #include "incls/_unsafe.cpp.incl"
       
    31 
    42 
    32 HS_DTRACE_PROBE_DECL3(hotspot, thread__park__begin, uintptr_t, int, long long);
    43 HS_DTRACE_PROBE_DECL3(hotspot, thread__park__begin, uintptr_t, int, long long);
    33 HS_DTRACE_PROBE_DECL1(hotspot, thread__park__end, uintptr_t);
    44 HS_DTRACE_PROBE_DECL1(hotspot, thread__park__end, uintptr_t);
    34 HS_DTRACE_PROBE_DECL1(hotspot, thread__unpark, uintptr_t);
    45 HS_DTRACE_PROBE_DECL1(hotspot, thread__unpark, uintptr_t);
    35 
    46