Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / sgen / sgen-major-copy-object.h
1 /**
2  * \file
3  * Object copying in the major collectors.
4  *
5  * Copyright 2001-2003 Ximian, Inc
6  * Copyright 2003-2010 Novell, Inc.
7  * Copyright (C) 2012 Xamarin Inc
8  *
9  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
10  */
11
12 #define collector_pin_object(obj, queue) do { \
13         if (sgen_ptr_in_nursery (obj)) {        \
14                 sgen_pin_object (obj, queue);   \
15         } else {        \
16                 g_assert (objsize <= SGEN_MAX_SMALL_OBJ_SIZE);  \
17                 pin_major_object (obj, queue);  \
18         }       \
19 } while (0)
20
21 #define COLLECTOR_SERIAL_ALLOC_FOR_PROMOTION sgen_minor_collector.alloc_for_promotion
22 #define COLLECTOR_PARALLEL_ALLOC_FOR_PROMOTION sgen_minor_collector.alloc_for_promotion_par
23
24 #include "sgen-copy-object.h"