src/os/linux/vm/os_linux.cpp

Print this page


   1 /*
   2  * Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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.
  22  *
  23  */
  24 
  25 # define __STDC_FORMAT_MACROS
  26 
  27 // do not include  precompiled  header file
  28 # include "incls/_os_linux.cpp.incl"

























































  29 

  30 // put OS-includes here
  31 # include <sys/types.h>
  32 # include <sys/mman.h>
  33 # include <sys/stat.h>
  34 # include <sys/select.h>
  35 # include <pthread.h>
  36 # include <signal.h>
  37 # include <errno.h>
  38 # include <dlfcn.h>
  39 # include <stdio.h>
  40 # include <unistd.h>
  41 # include <sys/resource.h>
  42 # include <pthread.h>
  43 # include <sys/stat.h>
  44 # include <sys/time.h>
  45 # include <sys/times.h>
  46 # include <sys/utsname.h>
  47 # include <sys/socket.h>
  48 # include <sys/wait.h>
  49 # include <pwd.h>


   1 /*
   2  * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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.
  22  *
  23  */
  24 
  25 # define __STDC_FORMAT_MACROS
  26 
  27 // no precompiled headers
  28 #include "classfile/classLoader.hpp"
  29 #include "classfile/systemDictionary.hpp"
  30 #include "classfile/vmSymbols.hpp"
  31 #include "code/icBuffer.hpp"
  32 #include "code/vtableStubs.hpp"
  33 #include "compiler/compileBroker.hpp"
  34 #include "interpreter/interpreter.hpp"
  35 #include "jvm_linux.h"
  36 #include "memory/allocation.inline.hpp"
  37 #include "memory/filemap.hpp"
  38 #include "mutex_linux.inline.hpp"
  39 #include "oops/oop.inline.hpp"
  40 #include "os_share_linux.hpp"
  41 #include "prims/jniFastGetField.hpp"
  42 #include "prims/jvm.h"
  43 #include "prims/jvm_misc.hpp"
  44 #include "runtime/arguments.hpp"
  45 #include "runtime/extendedPC.hpp"
  46 #include "runtime/globals.hpp"
  47 #include "runtime/hpi.hpp"
  48 #include "runtime/interfaceSupport.hpp"
  49 #include "runtime/java.hpp"
  50 #include "runtime/javaCalls.hpp"
  51 #include "runtime/mutexLocker.hpp"
  52 #include "runtime/objectMonitor.hpp"
  53 #include "runtime/objectMonitor.inline.hpp"
  54 #include "runtime/osThread.hpp"
  55 #include "runtime/perfMemory.hpp"
  56 #include "runtime/sharedRuntime.hpp"
  57 #include "runtime/statSampler.hpp"
  58 #include "runtime/stubRoutines.hpp"
  59 #include "runtime/threadCritical.hpp"
  60 #include "runtime/timer.hpp"
  61 #include "services/attachListener.hpp"
  62 #include "services/runtimeService.hpp"
  63 #include "thread_linux.inline.hpp"
  64 #include "utilities/defaultStream.hpp"
  65 #include "utilities/events.hpp"
  66 #include "utilities/growableArray.hpp"
  67 #include "utilities/vmError.hpp"
  68 #ifdef TARGET_ARCH_x86
  69 # include "assembler_x86.inline.hpp"
  70 # include "nativeInst_x86.hpp"
  71 #endif
  72 #ifdef TARGET_ARCH_sparc
  73 # include "assembler_sparc.inline.hpp"
  74 # include "nativeInst_sparc.hpp"
  75 #endif
  76 #ifdef TARGET_ARCH_zero
  77 # include "assembler_zero.inline.hpp"
  78 # include "nativeInst_zero.hpp"
  79 #endif
  80 #ifdef COMPILER1
  81 #include "c1/c1_Runtime1.hpp"
  82 #endif
  83 #ifdef COMPILER2
  84 #include "opto/runtime.hpp"
  85 #endif
  86 
  87 // do not include  precompiled  header file
  88 // put OS-includes here
  89 # include <sys/types.h>
  90 # include <sys/mman.h>
  91 # include <sys/stat.h>
  92 # include <sys/select.h>
  93 # include <pthread.h>
  94 # include <signal.h>
  95 # include <errno.h>
  96 # include <dlfcn.h>
  97 # include <stdio.h>
  98 # include <unistd.h>
  99 # include <sys/resource.h>
 100 # include <pthread.h>
 101 # include <sys/stat.h>
 102 # include <sys/time.h>
 103 # include <sys/times.h>
 104 # include <sys/utsname.h>
 105 # include <sys/socket.h>
 106 # include <sys/wait.h>
 107 # include <pwd.h>