src/os.cc
// Classifies addresses according to "regions"
// This isn't really implemented meaningfully here..
Classifies addresses according to "regions"
This isn't really implemented meaningfully here
Classifies addresses according to " regions " This isn ' t really implemented meaningfully here
int32 OsLayer::FindRegion(uint64 addr) {
  static bool warned = false;
  if (regionsize_ == 0) {
    regionsize_ = totalmemsize_ / 8;
    if (regionsize_ < 512 * kMegabyte)
      regionsize_ = 512 * kMegabyte;
    regioncount_ = totalmemsize_ / regionsize_;
    if (regioncount_ < 1) regioncount_ = 1;
  }
  int32 region_num = addr / regionsize_;
  if (region_num >= regioncount_) {
    if (!warned) {
        logprintf(0, "Log: region number %d exceeds region count %d\n",
                  region_num, regioncount_);
        warned = true;
    }
    region_num = region_num % regioncount_;
  }
  return region_num;
}
int32 OsLayer :: FindRegion ( uint64 addr ) { static bool warned = false ; if ( regionsize_ == 0 ) { regionsize_ = totalmemsize_ / 8 ; if ( regionsize_ < 512 * kMegabyte ) regionsize_ = 512 * kMegabyte ; regioncount_ = totalmemsize_ / regionsize_ ; if ( regioncount_ < 1 ) regioncount_ = 1 ; } int32 region_num = addr / regionsize_ ; if ( region_num >= regioncount_ ) { if ( ! warned ) { logprintf ( 0 , " \n " , region_num , regioncount_ ) ; warned = true ; } region_num = region_num % regioncount_ ; } return region_num ; }
Classifies addresses according to "regions"
This isn't really implemented meaningfully here..
Classifies addresses according to " regions " This isn ' t really implemented meaningfully here ..