src/share/vm/runtime/os.hpp

changeset 1
2d8a650513c2
parent 0
f90c822e73f8
child 25
873fd82b133d
equal deleted inserted replaced
0:f90c822e73f8 1:2d8a650513c2
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 /*
26 * This file has been modified by Loongson Technology in 2015. These
27 * modifications are Copyright (c) 2015 Loongson Technology, and are made
28 * available on the same license terms set forth above.
29 */
30
25 #ifndef SHARE_VM_RUNTIME_OS_HPP 31 #ifndef SHARE_VM_RUNTIME_OS_HPP
26 #define SHARE_VM_RUNTIME_OS_HPP 32 #define SHARE_VM_RUNTIME_OS_HPP
27 33
28 #include "jvmtifiles/jvmti.h" 34 #include "jvmtifiles/jvmti.h"
29 #include "runtime/atomic.hpp" 35 #include "runtime/atomic.hpp"
334 static void numa_make_global(char *addr, size_t bytes); 340 static void numa_make_global(char *addr, size_t bytes);
335 static size_t numa_get_groups_num(); 341 static size_t numa_get_groups_num();
336 static size_t numa_get_leaf_groups(int *ids, size_t size); 342 static size_t numa_get_leaf_groups(int *ids, size_t size);
337 static bool numa_topology_changed(); 343 static bool numa_topology_changed();
338 static int numa_get_group_id(); 344 static int numa_get_group_id();
345 static int numa_get_cpu_id();
339 346
340 // Page manipulation 347 // Page manipulation
341 struct page_info { 348 struct page_info {
342 size_t size; 349 size_t size;
343 int lgrp_id; 350 int lgrp_id;
784 # include "os_posix.hpp" 791 # include "os_posix.hpp"
785 # include "os_bsd.hpp" 792 # include "os_bsd.hpp"
786 #endif 793 #endif
787 #ifdef TARGET_OS_ARCH_linux_x86 794 #ifdef TARGET_OS_ARCH_linux_x86
788 # include "os_linux_x86.hpp" 795 # include "os_linux_x86.hpp"
796 #endif
797 #ifdef TARGET_OS_ARCH_linux_mips
798 # include "os_linux_mips.hpp"
789 #endif 799 #endif
790 #ifdef TARGET_OS_ARCH_linux_sparc 800 #ifdef TARGET_OS_ARCH_linux_sparc
791 # include "os_linux_sparc.hpp" 801 # include "os_linux_sparc.hpp"
792 #endif 802 #endif
793 #ifdef TARGET_OS_ARCH_linux_zero 803 #ifdef TARGET_OS_ARCH_linux_zero

mercurial