* java/org/gnu/emacs/EmacsSafThread.java (DocIdEntry)
(getCacheEntry, CacheEntry): Use `uptimeMillis' as the basis for
cache expiration.
public
DocIdEntry ()
{
- time = System.currentTimeMillis ();
+ time = System.uptimeMillis ();
}
/* Return a cache entry comprised of the state of the file
}
catch (Throwable e)
{
- if (e instanceof FileNotFoundException)
- return null;
-
- throw e;
+ return null;
}
finally
{
public boolean
isValid ()
{
- return ((System.currentTimeMillis () - time)
+ return ((System.uptimeMillis () - time)
< CACHE_INVALID_TIME);
}
};
CacheEntry ()
{
children = new HashMap<String, DocIdEntry> ();
- time = System.currentTimeMillis ();
+ time = System.uptimeMillis ();
}
public boolean
isValid ()
{
- return ((System.currentTimeMillis () - time)
+ return ((System.uptimeMillis () - time)
< CACHE_INVALID_TIME);
}
};