mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
reset accidentally changed upper limit on 64 bit system for ByteBuffers
(cherry picked from commit d06b1c0)
This commit is contained in:
committed by
Maxim.Mossienko
parent
b3527d9a20
commit
e7bd5346b6
@@ -18,6 +18,7 @@ package com.intellij.util.io;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.Forceable;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.util.SystemProperties;
|
||||
import com.intellij.util.containers.ConcurrentIntObjectMap;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
@@ -51,7 +52,7 @@ public class PagedFileStorage implements Forceable {
|
||||
|
||||
static {
|
||||
final int lower = 100;
|
||||
final int upper = /*SystemInfo.is64Bit ? 500 :*/ 200;
|
||||
final int upper = SystemInfo.is64Bit ? 500 : 200;
|
||||
|
||||
BUFFER_SIZE = Math.max(1, SystemProperties.getIntProperty("idea.paged.storage.page.size", 10)) * MB;
|
||||
final long max = maxDirectMemory() - 2 * BUFFER_SIZE;
|
||||
|
||||
Reference in New Issue
Block a user