hotspot/src/share/vm/prims/jvm.cpp
changeset 7397 5b173b4ca846
parent 5547 f4b087cbb361
child 7405 e6fc8d3926f8
equal deleted inserted replaced
7396:518b01b064ff 7397:5b173b4ca846
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 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 "incls/_precompiled.incl"
    25 #include "precompiled.hpp"
    26 #include "incls/_jvm.cpp.incl"
    26 #include "classfile/classLoader.hpp"
       
    27 #include "classfile/javaAssertions.hpp"
       
    28 #include "classfile/javaClasses.hpp"
       
    29 #include "classfile/symbolTable.hpp"
       
    30 #include "classfile/systemDictionary.hpp"
       
    31 #include "classfile/vmSymbols.hpp"
       
    32 #include "gc_interface/collectedHeap.inline.hpp"
       
    33 #include "memory/oopFactory.hpp"
       
    34 #include "memory/universe.inline.hpp"
       
    35 #include "oops/instanceKlass.hpp"
       
    36 #include "oops/objArrayKlass.hpp"
       
    37 #include "prims/jvm.h"
       
    38 #include "prims/jvm_misc.hpp"
       
    39 #include "prims/jvmtiExport.hpp"
       
    40 #include "prims/jvmtiThreadState.hpp"
       
    41 #include "prims/nativeLookup.hpp"
       
    42 #include "prims/privilegedStack.hpp"
       
    43 #include "runtime/arguments.hpp"
       
    44 #include "runtime/dtraceJSDT.hpp"
       
    45 #include "runtime/handles.inline.hpp"
       
    46 #include "runtime/hpi.hpp"
       
    47 #include "runtime/init.hpp"
       
    48 #include "runtime/interfaceSupport.hpp"
       
    49 #include "runtime/java.hpp"
       
    50 #include "runtime/javaCalls.hpp"
       
    51 #include "runtime/jfieldIDWorkaround.hpp"
       
    52 #include "runtime/os.hpp"
       
    53 #include "runtime/perfData.hpp"
       
    54 #include "runtime/reflection.hpp"
       
    55 #include "runtime/vframe.hpp"
       
    56 #include "runtime/vm_operations.hpp"
       
    57 #include "services/attachListener.hpp"
       
    58 #include "services/management.hpp"
       
    59 #include "services/threadService.hpp"
       
    60 #include "utilities/copy.hpp"
       
    61 #include "utilities/defaultStream.hpp"
       
    62 #include "utilities/dtrace.hpp"
       
    63 #include "utilities/events.hpp"
       
    64 #include "utilities/histogram.hpp"
       
    65 #include "utilities/top.hpp"
       
    66 #include "utilities/utf8.hpp"
       
    67 #ifdef TARGET_OS_FAMILY_linux
       
    68 # include "hpi_linux.hpp"
       
    69 # include "jvm_linux.h"
       
    70 #endif
       
    71 #ifdef TARGET_OS_FAMILY_solaris
       
    72 # include "hpi_solaris.hpp"
       
    73 # include "jvm_solaris.h"
       
    74 #endif
       
    75 #ifdef TARGET_OS_FAMILY_windows
       
    76 # include "hpi_windows.hpp"
       
    77 # include "jvm_windows.h"
       
    78 #endif
       
    79 
    27 #include <errno.h>
    80 #include <errno.h>
    28 
    81 
    29 HS_DTRACE_PROBE_DECL1(hotspot, thread__sleep__begin, long long);
    82 HS_DTRACE_PROBE_DECL1(hotspot, thread__sleep__begin, long long);
    30 HS_DTRACE_PROBE_DECL1(hotspot, thread__sleep__end, int);
    83 HS_DTRACE_PROBE_DECL1(hotspot, thread__sleep__end, int);
    31 HS_DTRACE_PROBE_DECL0(hotspot, thread__yield);
    84 HS_DTRACE_PROBE_DECL0(hotspot, thread__yield);