linux-packaging-mono/mono/sgen/sgen-major-copy-object.h
Xamarin Public Jenkins (auto-signing) 536cd135cc Imported Upstream version 5.4.0.167
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
2017-08-21 15:34:15 +00:00

25 lines
717 B
C

/**
* \file
* Object copying in the major collectors.
*
* Copyright 2001-2003 Ximian, Inc
* Copyright 2003-2010 Novell, Inc.
* Copyright (C) 2012 Xamarin Inc
*
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
#define collector_pin_object(obj, queue) do { \
if (sgen_ptr_in_nursery (obj)) { \
sgen_pin_object (obj, queue); \
} else { \
g_assert (objsize <= SGEN_MAX_SMALL_OBJ_SIZE); \
pin_major_object (obj, queue); \
} \
} while (0)
#define COLLECTOR_SERIAL_ALLOC_FOR_PROMOTION sgen_minor_collector.alloc_for_promotion
#define COLLECTOR_PARALLEL_ALLOC_FOR_PROMOTION sgen_minor_collector.alloc_for_promotion_par
#include "sgen-copy-object.h"