Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
549f1bf9
Commit
549f1bf9
authored
7 years ago
by
peter
Browse files
Options
Download
Email Patches
Plain Diff
GCUtil: allocate memory in even more humble chunks
parent
366e5b43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/util/src/com/intellij/util/ref/GCUtil.java
+1
-1
platform/util/src/com/intellij/util/ref/GCUtil.java
with
1 addition
and
1 deletion
+1
-1
platform/util/src/com/intellij/util/ref/GCUtil.java
+
1
-
1
View file @
549f1bf9
...
...
@@ -60,7 +60,7 @@ public class GCUtil {
}
// full gc is caused by allocation of large enough array below, SoftReference will be cleared after two full gc
int
bytes
=
Math
.
min
((
int
)(
freeMemory
*
0.
1
),
Integer
.
MAX_VALUE
/
2
);
int
bytes
=
Math
.
min
((
int
)(
freeMemory
*
0.
05
),
Integer
.
MAX_VALUE
/
2
);
list
.
add
(
new
SoftReference
<
Object
>(
new
byte
[
bytes
]));
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help