src/share/vm/runtime/os.cpp

Print this page
rev 6623 : 8048241: Introduce umbrella header os.inline.hpp and clean up includes
Reviewed-by: coleenp, dholmes, lfoltan


  29 #include "classfile/vmSymbols.hpp"
  30 #include "code/icBuffer.hpp"
  31 #include "code/vtableStubs.hpp"
  32 #include "gc_implementation/shared/vmGCOperations.hpp"
  33 #include "interpreter/interpreter.hpp"
  34 #include "memory/allocation.inline.hpp"
  35 #ifdef ASSERT
  36 #include "memory/guardedMemory.hpp"
  37 #endif
  38 #include "oops/oop.inline.hpp"
  39 #include "prims/jvm.h"
  40 #include "prims/jvm_misc.hpp"
  41 #include "prims/privilegedStack.hpp"
  42 #include "runtime/arguments.hpp"
  43 #include "runtime/atomic.inline.hpp"
  44 #include "runtime/frame.inline.hpp"
  45 #include "runtime/interfaceSupport.hpp"
  46 #include "runtime/java.hpp"
  47 #include "runtime/javaCalls.hpp"
  48 #include "runtime/mutexLocker.hpp"
  49 #include "runtime/os.hpp"
  50 #include "runtime/stubRoutines.hpp"
  51 #include "runtime/thread.inline.hpp"
  52 #include "services/attachListener.hpp"
  53 #include "services/memTracker.hpp"
  54 #include "services/threadService.hpp"
  55 #include "utilities/defaultStream.hpp"
  56 #include "utilities/events.hpp"
  57 #ifdef TARGET_OS_FAMILY_linux
  58 # include "os_linux.inline.hpp"
  59 #endif
  60 #ifdef TARGET_OS_FAMILY_solaris
  61 # include "os_solaris.inline.hpp"
  62 #endif
  63 #ifdef TARGET_OS_FAMILY_windows
  64 # include "os_windows.inline.hpp"
  65 #endif
  66 #ifdef TARGET_OS_FAMILY_bsd
  67 # include "os_bsd.inline.hpp"
  68 #endif
  69 
  70 # include <signal.h>
  71 
  72 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  73 
  74 OSThread*         os::_starting_thread    = NULL;
  75 address           os::_polling_page       = NULL;
  76 volatile int32_t* os::_mem_serialize_page = NULL;
  77 uintptr_t         os::_serialize_page_mask = 0;
  78 long              os::_rand_seed          = 1;
  79 int               os::_processor_count    = 0;
  80 size_t            os::_page_sizes[os::page_sizes_max];
  81 
  82 #ifndef PRODUCT
  83 julong os::num_mallocs = 0;         // # of calls to malloc/realloc
  84 julong os::alloc_bytes = 0;         // # of bytes allocated
  85 julong os::num_frees = 0;           // # of calls to free
  86 julong os::free_bytes = 0;          // # of bytes freed
  87 #endif
  88 




  29 #include "classfile/vmSymbols.hpp"
  30 #include "code/icBuffer.hpp"
  31 #include "code/vtableStubs.hpp"
  32 #include "gc_implementation/shared/vmGCOperations.hpp"
  33 #include "interpreter/interpreter.hpp"
  34 #include "memory/allocation.inline.hpp"
  35 #ifdef ASSERT
  36 #include "memory/guardedMemory.hpp"
  37 #endif
  38 #include "oops/oop.inline.hpp"
  39 #include "prims/jvm.h"
  40 #include "prims/jvm_misc.hpp"
  41 #include "prims/privilegedStack.hpp"
  42 #include "runtime/arguments.hpp"
  43 #include "runtime/atomic.inline.hpp"
  44 #include "runtime/frame.inline.hpp"
  45 #include "runtime/interfaceSupport.hpp"
  46 #include "runtime/java.hpp"
  47 #include "runtime/javaCalls.hpp"
  48 #include "runtime/mutexLocker.hpp"
  49 #include "runtime/os.inline.hpp"
  50 #include "runtime/stubRoutines.hpp"
  51 #include "runtime/thread.inline.hpp"
  52 #include "services/attachListener.hpp"
  53 #include "services/memTracker.hpp"
  54 #include "services/threadService.hpp"
  55 #include "utilities/defaultStream.hpp"
  56 #include "utilities/events.hpp"












  57 
  58 # include <signal.h>
  59 
  60 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  61 
  62 OSThread*         os::_starting_thread    = NULL;
  63 address           os::_polling_page       = NULL;
  64 volatile int32_t* os::_mem_serialize_page = NULL;
  65 uintptr_t         os::_serialize_page_mask = 0;
  66 long              os::_rand_seed          = 1;
  67 int               os::_processor_count    = 0;
  68 size_t            os::_page_sizes[os::page_sizes_max];
  69 
  70 #ifndef PRODUCT
  71 julong os::num_mallocs = 0;         // # of calls to malloc/realloc
  72 julong os::alloc_bytes = 0;         // # of bytes allocated
  73 julong os::num_frees = 0;           // # of calls to free
  74 julong os::free_bytes = 0;          // # of bytes freed
  75 #endif
  76