Merge pull request #2666 from lambdageek/dev/kill-InternalReplaceStrComp
[mono-project.git] / mono / sgen / sgen-major-copy-object.h
bloba4b10ff85df2967fd4a4ba18740a88d838c6cd9b
1 /*
2 * sgen-major-copy-object.h: Object copying in the major collectors.
4 * Copyright 2001-2003 Ximian, Inc
5 * Copyright 2003-2010 Novell, Inc.
6 * Copyright (C) 2012 Xamarin Inc
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License 2.0 as published by the Free Software Foundation;
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License 2.0 along with this library; if not, write to the Free
19 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #define collector_pin_object(obj, queue) do { \
23 if (sgen_ptr_in_nursery (obj)) { \
24 sgen_pin_object (obj, queue); \
25 } else { \
26 g_assert (objsize <= SGEN_MAX_SMALL_OBJ_SIZE); \
27 pin_major_object (obj, queue); \
28 } \
29 } while (0)
31 #define COLLECTOR_SERIAL_ALLOC_FOR_PROMOTION sgen_minor_collector.alloc_for_promotion
33 #include "sgen-copy-object.h"