From 45f18cc073d977ef2b80d619afd2499018daef2e Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sat, 20 Oct 2018 11:34:29 +0200 Subject: [PATCH] Do not use virtual memory mapping by default This option has caused crashes on Linux, hence don't enable it by default. Earlier it was completely disabled for Windows since there it causes more issues like locking problems. Bug: 539918 Change-Id: I4099fd8a3fcf2f59a121177a2c2d8fb9e42c5146 Signed-off-by: Matthias Sohn --- .../src/org/eclipse/egit/core/GitCorePreferenceInitializer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/GitCorePreferenceInitializer.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/GitCorePreferenceInitializer.java index 3a2f121c0..3757fe11f 100644 --- a/org.eclipse.egit.core/src/org/eclipse/egit/core/GitCorePreferenceInitializer.java +++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/GitCorePreferenceInitializer.java @@ -15,7 +15,6 @@ package org.eclipse.egit.core; import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; import org.eclipse.core.runtime.preferences.DefaultScope; import org.eclipse.core.runtime.preferences.IEclipsePreferences; -import org.eclipse.jgit.util.SystemReader; /** Initializes plugin preferences with default values. */ public class GitCorePreferenceInitializer extends AbstractPreferenceInitializer { @@ -27,8 +26,7 @@ public class GitCorePreferenceInitializer extends AbstractPreferenceInitializer p.putInt(GitCorePreferences.core_packedGitWindowSize, 8 * 1024); p.putInt(GitCorePreferences.core_packedGitLimit, 10 * MB); - p.putBoolean(GitCorePreferences.core_packedGitMMAP, - !SystemReader.getInstance().isWindows()); + p.putBoolean(GitCorePreferences.core_packedGitMMAP, false); p.putInt(GitCorePreferences.core_deltaBaseCacheLimit, 10 * MB); p.putInt(GitCorePreferences.core_streamFileThreshold, 50 * MB); p.putBoolean(GitCorePreferences.core_autoShareProjects, true); -- 2.11.4.GIT