Modify static var to global var in file

pull/19393/head
Yunjia Wang 6 years ago
parent cb8730c71d
commit 233eee421f
  1. 3
      src/core/lib/gprpp/thd_posix.cc

@ -49,8 +49,9 @@ struct thd_arg {
bool tracked;
};
size_t page_size = static_cast<size_t>(sysconf(_SC_PAGESIZE));
size_t RoundUpToPageSize(size_t size) {
static size_t page_size = static_cast<size_t>(sysconf(_SC_PAGESIZE));
return (size + page_size - 1) & ~(page_size - 1);
}

Loading…
Cancel
Save