X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fsgen%2Fsgen-conf.h;h=d9296ca15945b9a4dcfeb066d9751de9c17d9704;hb=2099acf5f4a80c46bf4e75e9d67b8db4f2c86bbd;hp=368ec5a6d3be6fed582712f113fe1289b69755a6;hpb=b16bcb6332458610a13bb749b277f042ade32de2;p=mono.git diff --git a/mono/sgen/sgen-conf.h b/mono/sgen/sgen-conf.h index 368ec5a6d3b..d9296ca1594 100644 --- a/mono/sgen/sgen-conf.h +++ b/mono/sgen/sgen-conf.h @@ -1,23 +1,13 @@ -/* - * sgen-conf.h: Tunable parameters and debugging switches. +/** + * \file + * Tunable parameters and debugging switches. * * Copyright 2001-2003 Ximian, Inc * Copyright 2003-2010 Novell, Inc. * Copyright 2011 Xamarin Inc (http://www.xamarin.com) * Copyright (C) 2012 Xamarin Inc * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License 2.0 as published by the Free Software Foundation; - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License 2.0 along with this library; if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #ifndef __MONO_SGENCONF_H__ #define __MONO_SGENCONF_H__ @@ -185,6 +175,11 @@ typedef mword SgenDescriptor; #define SGEN_MIN_ALLOWANCE_NURSERY_SIZE_RATIO 1.0 #define SGEN_MAX_ALLOWANCE_NURSERY_SIZE_RATIO 10.0 +/* + * How much more we allow the heap to grow before triggering another major collection + */ +#define SGEN_DEFAULT_ALLOWANCE_HEAP_SIZE_RATIO 0.33 + /* * Default ratio of memory we want to release in a major collection in relation to the the current heap size. *