src/directory.cc
/*
 * intermediate state
 * only happen in transition from dirty to shared
 * READ Case 1, Case 3
 */
intermediate state
only happen in transition from dirty to shared
READ Case 1, Case 3
intermediate state only happen in transition from dirty to shared READ Case 1 Case 3
void Directory::ToToShared(void* ptr, GAddr addr) {
  epicAssert((ptr_t)ptr == TOBLOCK(ptr));
  ptr_t block = TOBLOCK(ptr);
  DirEntry* entry = GetEntry(block);
  ToToShared(entry, addr);
}
void Directory :: ToToShared ( void * ptr , GAddr addr ) { epicAssert ( ( ptr_t ) ptr == TOBLOCK ( ptr ) ) ; ptr_t block = TOBLOCK ( ptr ) ; DirEntry * entry = GetEntry ( block ) ; ToToShared ( entry , addr ) ; }
intermediate state
 only happen in transition from dirty to shared
 READ Case 1, Case 3
intermediate state only happen in transition from dirty to shared READ Case 1 Case 3
//TODO: add a check on the max shared entries to 128 (i.e., MAX_UNSIGNED_CHAR)