Update Android port
* java/org/gnu/emacs/EmacsSafThread.java (DocIdEntry) (getCacheEntry, CacheEntry): Use `uptimeMillis' as the basis for cache expiration.
This commit is contained in:
parent
47f97b5ae4
commit
d3e1e18873
1 changed files with 5 additions and 8 deletions
|
@ -151,7 +151,7 @@ private final class DocIdEntry
|
|||
public
|
||||
DocIdEntry ()
|
||||
{
|
||||
time = System.currentTimeMillis ();
|
||||
time = System.uptimeMillis ();
|
||||
}
|
||||
|
||||
/* Return a cache entry comprised of the state of the file
|
||||
|
@ -208,10 +208,7 @@ private final class DocIdEntry
|
|||
}
|
||||
catch (Throwable e)
|
||||
{
|
||||
if (e instanceof FileNotFoundException)
|
||||
return null;
|
||||
|
||||
throw e;
|
||||
return null;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -223,7 +220,7 @@ private final class DocIdEntry
|
|||
public boolean
|
||||
isValid ()
|
||||
{
|
||||
return ((System.currentTimeMillis () - time)
|
||||
return ((System.uptimeMillis () - time)
|
||||
< CACHE_INVALID_TIME);
|
||||
}
|
||||
};
|
||||
|
@ -243,13 +240,13 @@ private final class CacheEntry
|
|||
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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue