code: @GuardedBy("evictionLock")
      void runTasksInChain(Task task) {
          while (task != null) {
              Task current = task;
              task = task.getNext();
              current.setNext(null);
              current.run();
          }
      }
docs: Runs the pending operations on the linked chain.
  
  @param task the first task in the chain of operations