public void removeModuleNids(String modulename){
  HashMap<Integer,Integer> nidToAddress=moduleToNidTable.remove(modulename);
  if (nidToAddress != null && overwrittenSyscalls.size() > 0) {
    for (    int nid : nidToAddress.keySet()) {
      int syscall=nidToSyscallInternal(nid);
      if (syscall != -1) {
        overwrittenSyscalls.remove(syscall);
      }
    }
  }
}

public void removeModuleNids ( String modulename ) { HashMap < Integer , Integer > nidToAddress = moduleToNidTable . remove ( modulename ) ; if ( nidToAddress != null && overwrittenSyscalls . size ( ) > 0 ) { for ( int nid : nidToAddress . keySet ( ) ) { int syscall = nidToSyscallInternal ( nid ) ; if ( syscall != - 1 ) { overwrittenSyscalls . remove ( syscall ) ; } } } }
use this when unloading modules
