提交 136c2f87 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 cb682cf1
...@@ -60,7 +60,7 @@ public class TestValueMemory extends TestBase implements DataHandler { ...@@ -60,7 +60,7 @@ public class TestValueMemory extends TestBase implements DataHandler {
System.gc(); System.gc();
long used = MemoryUtils.getMemoryUsed() - first; long used = MemoryUtils.getMemoryUsed() - first;
memory /= 1024; memory /= 1024;
if (Math.abs(used - memory) > used) { if (used > memory * 2) {
error("Type: " + type + " Used memory: " + used + " calculated: " + memory + " " + array.length); error("Type: " + type + " Used memory: " + used + " calculated: " + memory + " " + array.length);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论