this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Our new libdispatch doesn't crash immediately

+6
+6
src/startup/commpage.c
··· 28 28 char* signature; 29 29 uint64_t my_caps; 30 30 uint8_t *ncpus, *nactivecpus; 31 + uint8_t *physcpus, *logcpus; 31 32 struct sysinfo si; 32 33 33 34 commpage = (uint8_t*) mmap((void*)(_64bit ? _COMM_PAGE64_BASE_ADDRESS : _COMM_PAGE32_BASE_ADDRESS), ··· 51 52 52 53 nactivecpus = (uint8_t*)CGET(_COMM_PAGE_ACTIVE_CPUS); 53 54 *nactivecpus = sysconf(_SC_NPROCESSORS_ONLN); 55 + 56 + // Better imprecise information than no information 57 + physcpus = (uint8_t*)CGET(_COMM_PAGE_PHYSICAL_CPUS); 58 + logcpus = (uint8_t*)CGET(_COMM_PAGE_LOGICAL_CPUS); 59 + *physcpus = *logcpus = *ncpus; 54 60 55 61 my_caps = get_cpu_caps(); 56 62 if (*ncpus == 1)