D | mem-pressure.cpp | 23 void add_pressure(size_t *shared, size_t size, size_t step_size, in add_pressure() argument 36 *shared = size; in add_pressure() 41 *shared = size; in add_pressure() 59 size_t *shared; in main() local 91 shared = (size_t *)mmap(NULL, sizeof(size_t), PROT_READ | PROT_WRITE, in main() 95 *shared = 0; in main() 99 add_pressure(shared, size, step_size, duration, oom_score); in main() 105 *shared / 1024 / 1024); in main() 106 size = *shared / 2; in main()
|