projects
/
idea
/
community.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afb1184
)
sleep a bit when trying to do gc in tests, maybe this will help with blinking
author
peter
<peter@jetbrains.com>
Fri, 6 Feb 2015 15:08:36 +0000
(16:08 +0100)
committer
peter
<peter@jetbrains.com>
Fri, 6 Feb 2015 15:11:12 +0000
(16:11 +0100)
platform/testFramework/src/com/intellij/util/GCUtil.java
patch
|
blob
|
history
diff --git
a/platform/testFramework/src/com/intellij/util/GCUtil.java
b/platform/testFramework/src/com/intellij/util/GCUtil.java
index 610537beffa0d665ffa05785116fa7f58c49febd..ab2f1a419b68cce3610bb70d3081771e78080ffe 100644
(file)
--- a/
platform/testFramework/src/com/intellij/util/GCUtil.java
+++ b/
platform/testFramework/src/com/intellij/util/GCUtil.java
@@
-52,6
+52,7
@@
public class GCUtil {
if (q.poll() != null) {
break;
}
+ TimeoutUtil.sleep(10);
long bytes = Math.min(Runtime.getRuntime().freeMemory() / 2, Integer.MAX_VALUE);
list.add(new SoftReference<byte[]>(new byte[(int)bytes]));
}