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 #include "precompiled.hpp"
26 #include "classfile/classLoader.hpp"
27 #include "classfile/javaClasses.hpp"
28 #include "classfile/systemDictionary.hpp"
29 #include "classfile/vmSymbols.hpp"
30 #include "code/codeCache.hpp"
31 #include "code/icBuffer.hpp"
32 #include "code/vtableStubs.hpp"
33 #include "gc_implementation/shared/vmGCOperations.hpp"
34 #include "interpreter/interpreter.hpp"
35 #include "memory/allocation.inline.hpp"
36 #ifdef ASSERT
37 #include "memory/guardedMemory.hpp"
38 #endif
39 #include "oops/oop.inline.hpp"
40 #include "prims/jvm.h"
41 #include "prims/jvm_misc.hpp"
42 #include "prims/privilegedStack.hpp"
43 #include "runtime/arguments.hpp"
44 #include "runtime/atomic.inline.hpp"
45 #include "runtime/frame.inline.hpp"
46 #include "runtime/interfaceSupport.hpp"
47 #include "runtime/java.hpp"
48 #include "runtime/javaCalls.hpp"
49 #include "runtime/mutexLocker.hpp"
50 #include "runtime/os.inline.hpp"
51 #include "runtime/stubRoutines.hpp"
52 #include "runtime/thread.inline.hpp"
53 #include "runtime/vm_version.hpp"
54 #include "services/attachListener.hpp"
55 #include "services/nmtCommon.hpp"
56 #include "services/mallocTracker.hpp"
57 #include "services/memTracker.hpp"
58 #include "services/threadService.hpp"
59 #include "utilities/defaultStream.hpp"
60 #include "utilities/events.hpp"
61
62 # include <signal.h>
63
64 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
65
66 OSThread* os::_starting_thread = NULL;
67 address os::_polling_page = NULL;
68 volatile int32_t* os::_mem_serialize_page = NULL;
69 uintptr_t os::_serialize_page_mask = 0;
70 long os::_rand_seed = 1;
71 int os::_processor_count = 0;
72 size_t os::_page_sizes[os::page_sizes_max];
73
74 #ifndef PRODUCT
75 julong os::num_mallocs = 0; // # of calls to malloc/realloc
76 julong os::alloc_bytes = 0; // # of bytes allocated
77 julong os::num_frees = 0; // # of calls to free
|
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 #include "precompiled.hpp"
26 #include "classfile/classLoader.hpp"
27 #include "classfile/javaClasses.hpp"
28 #include "classfile/systemDictionary.hpp"
29 #include "classfile/vmSymbols.hpp"
30 #include "code/codeCache.hpp"
31 #include "code/icBuffer.hpp"
32 #include "code/vtableStubs.hpp"
33 #include "gc/shared/vmGCOperations.hpp"
34 #include "interpreter/interpreter.hpp"
35 #include "memory/allocation.inline.hpp"
36 #ifdef ASSERT
37 #include "memory/guardedMemory.hpp"
38 #endif
39 #include "oops/oop.inline.hpp"
40 #include "prims/jvm.h"
41 #include "prims/jvm_misc.hpp"
42 #include "prims/privilegedStack.hpp"
43 #include "runtime/arguments.hpp"
44 #include "runtime/atomic.inline.hpp"
45 #include "runtime/frame.inline.hpp"
46 #include "runtime/interfaceSupport.hpp"
47 #include "runtime/java.hpp"
48 #include "runtime/javaCalls.hpp"
49 #include "runtime/mutexLocker.hpp"
50 #include "runtime/os.inline.hpp"
51 #include "runtime/stubRoutines.hpp"
52 #include "runtime/thread.inline.hpp"
53 #include "runtime/vm_version.hpp"
54 #include "services/attachListener.hpp"
55 #include "services/mallocTracker.hpp"
56 #include "services/memTracker.hpp"
57 #include "services/nmtCommon.hpp"
58 #include "services/threadService.hpp"
59 #include "utilities/defaultStream.hpp"
60 #include "utilities/events.hpp"
61
62 # include <signal.h>
63
64 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
65
66 OSThread* os::_starting_thread = NULL;
67 address os::_polling_page = NULL;
68 volatile int32_t* os::_mem_serialize_page = NULL;
69 uintptr_t os::_serialize_page_mask = 0;
70 long os::_rand_seed = 1;
71 int os::_processor_count = 0;
72 size_t os::_page_sizes[os::page_sizes_max];
73
74 #ifndef PRODUCT
75 julong os::num_mallocs = 0; // # of calls to malloc/realloc
76 julong os::alloc_bytes = 0; // # of bytes allocated
77 julong os::num_frees = 0; // # of calls to free
|