Merge pull request #2202 from mono/revert-2090-mono-4.2.0-branch-bug25480
[mono-project.git] / mono / metadata / gc-stats.c
blob4bcdfd55e0dce63229d6c0eadef5285cdf7962f2
1 /*
2 * gc-stats.c: GC statistics.
4 * Copyright (C) 2015 Xamarin Inc
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License 2.0 as published by the Free Software Foundation;
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License 2.0 along with this library; if not, write to the Free
17 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #include "mono/sgen/gc-internal-agnostic.h"
23 * Due to a bug in the linker on Darwin we need to initialize this struct, or there will be
24 * "undefined symbol" errors.
26 #if defined(__APPLE__)
27 GCStats gc_stats = {};
28 #else
29 GCStats gc_stats;
30 #endif