1.1 --- a/src/os/bsd/vm/os_bsd.cpp Tue Jun 04 12:06:54 2013 -0700 1.2 +++ b/src/os/bsd/vm/os_bsd.cpp Tue Jun 04 22:16:15 2013 -0700 1.3 @@ -626,8 +626,6 @@ 1.4 ////////////////////////////////////////////////////////////////////////////// 1.5 // create new thread 1.6 1.7 -static address highest_vm_reserved_address(); 1.8 - 1.9 // check if it's safe to start a new thread 1.10 static bool _thread_safety_check(Thread* thread) { 1.11 return true; 1.12 @@ -2112,10 +2110,6 @@ 1.13 return anon_munmap(addr, size); 1.14 } 1.15 1.16 -static address highest_vm_reserved_address() { 1.17 - return _highest_vm_reserved_address; 1.18 -} 1.19 - 1.20 static bool bsd_mprotect(char* addr, size_t size, int prot) { 1.21 // Bsd wants the mprotect address argument to be page aligned. 1.22 char* bottom = (char*)align_size_down((intptr_t)addr, os::Bsd::page_size()); 1.23 @@ -2159,43 +2153,6 @@ 1.24 return false; 1.25 } 1.26 1.27 -/* 1.28 -* Set the coredump_filter bits to include largepages in core dump (bit 6) 1.29 -* 1.30 -* From the coredump_filter documentation: 1.31 -* 1.32 -* - (bit 0) anonymous private memory 1.33 -* - (bit 1) anonymous shared memory 1.34 -* - (bit 2) file-backed private memory 1.35 -* - (bit 3) file-backed shared memory 1.36 -* - (bit 4) ELF header pages in file-backed private memory areas (it is 1.37 -* effective only if the bit 2 is cleared) 1.38 -* - (bit 5) hugetlb private memory 1.39 -* - (bit 6) hugetlb shared memory 1.40 -*/ 1.41 -static void set_coredump_filter(void) { 1.42 - FILE *f; 1.43 - long cdm; 1.44 - 1.45 - if ((f = fopen("/proc/self/coredump_filter", "r+")) == NULL) { 1.46 - return; 1.47 - } 1.48 - 1.49 - if (fscanf(f, "%lx", &cdm) != 1) { 1.50 - fclose(f); 1.51 - return; 1.52 - } 1.53 - 1.54 - rewind(f); 1.55 - 1.56 - if ((cdm & LARGEPAGES_BIT) == 0) { 1.57 - cdm |= LARGEPAGES_BIT; 1.58 - fprintf(f, "%#lx", cdm); 1.59 - } 1.60 - 1.61 - fclose(f); 1.62 -} 1.63 - 1.64 // Large page support 1.65 1.66 static size_t _large_page_size = 0;