Repository: systemml Updated Branches: refs/heads/master 1d2f4b630 -> 104b20e0b
[MINOR] Fixes a minor big in LRU cache Closes #834. Project: http://git-wip-us.apache.org/repos/asf/systemml/repo Commit: http://git-wip-us.apache.org/repos/asf/systemml/commit/104b20e0 Tree: http://git-wip-us.apache.org/repos/asf/systemml/tree/104b20e0 Diff: http://git-wip-us.apache.org/repos/asf/systemml/diff/104b20e0 Branch: refs/heads/master Commit: 104b20e0bca906a6b76f962145254f5a1fb02ba6 Parents: 1d2f4b6 Author: Anthony Thomas <ahtho...@eng.ucsd.edu> Authored: Mon Sep 17 14:31:31 2018 -0700 Committer: Niketan Pansare <npan...@us.ibm.com> Committed: Mon Sep 17 15:07:49 2018 -0700 ---------------------------------------------------------------------- src/main/java/org/apache/sysml/utils/PersistentLRUCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/systemml/blob/104b20e0/src/main/java/org/apache/sysml/utils/PersistentLRUCache.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/sysml/utils/PersistentLRUCache.java b/src/main/java/org/apache/sysml/utils/PersistentLRUCache.java index 83a0dcf..f053cd5 100644 --- a/src/main/java/org/apache/sysml/utils/PersistentLRUCache.java +++ b/src/main/java/org/apache/sysml/utils/PersistentLRUCache.java @@ -462,7 +462,7 @@ class DataWrapper { return _dArr.length*Double.BYTES; else if(_fArr != null) return _fArr.length*Float.BYTES; - else if(_fArr != null) + else if(_mb != null) return _mb.getInMemorySize(); else throw new DMLRuntimeException("Not implemented");