diff options
author | Pascal Rapicault | 2008-03-04 17:28:09 +0000 |
---|---|---|
committer | Pascal Rapicault | 2008-03-04 17:28:09 +0000 |
commit | 0cf9a291232aac0139be9b9790cd9656b2c3da3c (patch) | |
tree | b78e1eb041bc9d7ee8233335d2a6fb7dbf9681bf /bundles/org.eclipse.equinox.p2.garbagecollector/src | |
parent | cbc534fe294267e198c238144ebc3b31583b8f86 (diff) | |
download | rt.equinox.p2-0cf9a291232aac0139be9b9790cd9656b2c3da3c.tar.gz rt.equinox.p2-0cf9a291232aac0139be9b9790cd9656b2c3da3c.tar.xz rt.equinox.p2-0cf9a291232aac0139be9b9790cd9656b2c3da3c.zip |
Bug 221199 - Prevent GC to collect artifacts being used by the running instance
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.garbagecollector/src')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/internal/p2/garbagecollector/GCActivator.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/internal/p2/garbagecollector/GCActivator.java b/bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/internal/p2/garbagecollector/GCActivator.java index 8ed1c6001..240164bcc 100644 --- a/bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/internal/p2/garbagecollector/GCActivator.java +++ b/bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/internal/p2/garbagecollector/GCActivator.java @@ -22,8 +22,8 @@ import org.eclipse.osgi.service.debug.DebugOptions; import org.osgi.framework.*; public class GCActivator implements BundleActivator { - public static final String ID = "org.eclipse.equinox.internal.p2.garbagecollector"; //$NON-NLS-1$ - public static final String DISABLE_GARBAGE_COLLECT = "gc_disabled"; //$NON-NLS-1$ + public static final String ID = "org.eclipse.equinox.p2.garbagecollector"; //$NON-NLS-1$ + public static final String GC_ENABLED = "gc_enabled"; //$NON-NLS-1$ private static final String DEBUG_STRING = GCActivator.ID + "/debug"; //$NON-NLS-1$ private static final boolean DEFAULT_DEBUG = false; @@ -70,7 +70,7 @@ public class GCActivator implements BundleActivator { if (uninstallEventOccurred == true) { CommitOperationEvent event = (CommitOperationEvent) o; IPreferencesService prefService = (IPreferencesService) getService(context, IPreferencesService.class.getName()); - if (!(prefService.getBoolean(ID, DISABLE_GARBAGE_COLLECT, false, null))) { + if (!(prefService.getBoolean(ID, GC_ENABLED, false, null))) { new GarbageCollector().runGC(event.getProfile()); } uninstallEventOccurred = false; |