#include <glib.h>
#include <string.h>
-#include "metadata/gc-internal-agnostic.h"
+#include "mono/metadata/gc-internal-agnostic.h"
#define ptr_mask ((sizeof (void*) - 1))
#define _toi(ptr) ((size_t)ptr)
#include <ctype.h>
#include <stdlib.h>
-#include "metadata/gc-internal-agnostic.h"
+#include "mono/metadata/gc-internal-agnostic.h"
/**
* mono_gc_parse_environment_string_extract_number:
#include "config.h"
#ifdef HAVE_SGEN_GC
-#include "metadata/sgen-gc.h"
-#include "metadata/sgen-protocol.h"
-#include "metadata/sgen-memory-governor.h"
-#include "metadata/sgen-client.h"
-#include "utils/mono-memory-model.h"
#include <string.h>
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-protocol.h"
+#include "mono/metadata/sgen-memory-governor.h"
+#include "mono/metadata/sgen-client.h"
+#include "mono/utils/mono-memory-model.h"
#define ALIGN_UP SGEN_ALIGN_UP
#define ALLOC_ALIGN SGEN_ALLOC_ALIGN
#ifdef HAVE_SGEN_GC
-#include "utils/mono-compiler.h"
+#include "mono/utils/mono-compiler.h"
-#include "metadata/sgen-gc.h"
-#include "metadata/sgen-bridge.h"
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-bridge.h"
extern gboolean bridge_processing_in_progress;
extern MonoGCBridgeCallbacks bridge_callbacks;
#include "config.h"
#ifdef HAVE_SGEN_GC
-#include "metadata/sgen-gc.h"
-#include "metadata/sgen-cardtable.h"
-#include "metadata/sgen-memory-governor.h"
-#include "metadata/sgen-protocol.h"
-#include "metadata/sgen-layout-stats.h"
-#include "metadata/sgen-client.h"
-#include "metadata/gc-internal-agnostic.h"
-#include "utils/mono-memory-model.h"
#include <string.h>
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-cardtable.h"
+#include "mono/metadata/sgen-memory-governor.h"
+#include "mono/metadata/sgen-protocol.h"
+#include "mono/metadata/sgen-layout-stats.h"
+#include "mono/metadata/sgen-client.h"
+#include "mono/metadata/gc-internal-agnostic.h"
+#include "mono/utils/mono-memory-model.h"
//#define CARDTABLE_STATS
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include <metadata/sgen-pointer-queue.h>
+#include "mono/metadata/sgen-pointer-queue.h"
void sgen_client_init (void);
#include "config.h"
#ifdef HAVE_SGEN_GC
-#include "metadata/sgen-gc.h"
-#include "metadata/sgen-cardtable.h"
-#include "metadata/sgen-protocol.h"
-#include "metadata/sgen-memory-governor.h"
-#include "metadata/sgen-pinning.h"
-#include "metadata/sgen-client.h"
-#include "metadata/sgen-bridge-internal.h"
-#include "metadata/threadpool-internals.h"
#include <string.h>
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-cardtable.h"
+#include "mono/metadata/sgen-protocol.h"
+#include "mono/metadata/sgen-memory-governor.h"
+#include "mono/metadata/sgen-pinning.h"
+#include "mono/metadata/sgen-client.h"
+#include "mono/metadata/sgen-bridge-internal.h"
+#include "mono/metadata/threadpool-internals.h"
#define LOAD_VTABLE SGEN_LOAD_VTABLE
#define _XOPEN_SOURCE
#endif
-#include "metadata/sgen-gc.h"
-#include "metadata/gc-internal-agnostic.h"
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/gc-internal-agnostic.h"
#define MAX_USER_DESCRIPTORS 16
#include "config.h"
#ifdef HAVE_SGEN_GC
-#include "metadata/sgen-gc.h"
-#include "metadata/sgen-gray.h"
-#include "metadata/sgen-protocol.h"
-#include "metadata/sgen-pointer-queue.h"
-#include "metadata/sgen-client.h"
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-gray.h"
+#include "mono/metadata/sgen-protocol.h"
+#include "mono/metadata/sgen-pointer-queue.h"
+#include "mono/metadata/sgen-client.h"
+#include "mono/utils/mono-membar.h"
#define ptr_in_nursery sgen_ptr_in_nursery
#include "mono/metadata/gc-internal-agnostic.h"
#include "mono/utils/mono-proclib.h"
#include "mono/utils/mono-memory-model.h"
+#include "mono/utils/hazard-pointer.h"
#include <mono/utils/memcheck.h>
#include "config.h"
#ifdef HAVE_SGEN_GC
-#include "metadata/sgen-gc.h"
-#include "sgen-protocol.h"
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-protocol.h"
#ifdef HEAVY_STATISTICS
guint64 stat_gray_queue_section_alloc;
#ifdef HAVE_SGEN_GC
-#include "metadata/sgen-gc.h"
-#include "utils/lock-free-alloc.h"
-#include "metadata/sgen-memory-governor.h"
-#include "metadata/sgen-client.h"
#include <string.h>
+#include "mono/metadata/sgen-gc.h"
+#include "mono/utils/lock-free-alloc.h"
+#include "mono/metadata/sgen-memory-governor.h"
+#include "mono/metadata/sgen-client.h"
/* keep each size a multiple of ALLOC_ALIGN */
#if SIZEOF_VOID_P == 4
#ifdef HAVE_SGEN_GC
-#include "metadata/sgen-gc.h"
-#include "metadata/sgen-protocol.h"
-#include "metadata/sgen-cardtable.h"
-#include "metadata/sgen-memory-governor.h"
-#include "metadata/sgen-client.h"
#include <string.h>
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-protocol.h"
+#include "mono/metadata/sgen-cardtable.h"
+#include "mono/metadata/sgen-memory-governor.h"
+#include "mono/metadata/sgen-client.h"
#define LOS_SECTION_SIZE (1024 * 1024)
#include <math.h>
#include <errno.h>
-#include "metadata/sgen-gc.h"
-#include "metadata/sgen-protocol.h"
-#include "metadata/sgen-cardtable.h"
-#include "metadata/sgen-memory-governor.h"
-#include "metadata/sgen-layout-stats.h"
-#include "metadata/sgen-pointer-queue.h"
-#include "metadata/sgen-pinning.h"
-#include "metadata/sgen-workers.h"
-#include "metadata/sgen-thread-pool.h"
-#include "metadata/sgen-client.h"
-#include <string.h>
-#include <stdlib.h>
-
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-protocol.h"
+#include "mono/metadata/sgen-cardtable.h"
+#include "mono/metadata/sgen-memory-governor.h"
+#include "mono/metadata/sgen-layout-stats.h"
+#include "mono/metadata/sgen-pointer-queue.h"
+#include "mono/metadata/sgen-pinning.h"
+#include "mono/metadata/sgen-workers.h"
+#include "mono/metadata/sgen-thread-pool.h"
+#include "mono/metadata/sgen-client.h"
#if defined(ARCH_MIN_MS_BLOCK_SIZE) && defined(ARCH_MIN_MS_BLOCK_SIZE_SHIFT)
#define MS_BLOCK_SIZE ARCH_MIN_MS_BLOCK_SIZE
#include "config.h"
#ifdef HAVE_SGEN_GC
-#include "metadata/sgen-gc.h"
-#include "metadata/sgen-memory-governor.h"
-#include "metadata/sgen-thread-pool.h"
-#include "metadata/sgen-client.h"
-#include <stdlib.h>
-
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-memory-governor.h"
+#include "mono/metadata/sgen-thread-pool.h"
+#include "mono/metadata/sgen-client.h"
#define MIN_MINOR_COLLECTION_ALLOWANCE ((mword)(DEFAULT_NURSERY_SIZE * default_allowance_nursery_size_ratio))
#define _XOPEN_SOURCE
#endif
-#include "metadata/sgen-gc.h"
-#include "metadata/sgen-cardtable.h"
-#include "metadata/sgen-protocol.h"
-#include "metadata/sgen-memory-governor.h"
-#include "metadata/sgen-pinning.h"
-#include "metadata/sgen-client.h"
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-cardtable.h"
+#include "mono/metadata/sgen-protocol.h"
+#include "mono/metadata/sgen-memory-governor.h"
+#include "mono/metadata/sgen-pinning.h"
+#include "mono/metadata/sgen-client.h"
+#include "mono/utils/mono-membar.h"
/* Enable it so nursery allocation diagnostic data is collected */
//#define NALLOC_DEBUG 1
#include "config.h"
#ifdef HAVE_SGEN_GC
-#include "metadata/sgen-gc.h"
-#include "metadata/sgen-pinning.h"
-#include "metadata/sgen-hash-table.h"
#include <string.h>
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-pinning.h"
+#include "mono/metadata/sgen-hash-table.h"
#include "mono/metadata/sgen-client.h"
typedef struct _PinStatAddress PinStatAddress;
#include "config.h"
#ifdef HAVE_SGEN_GC
-#include "metadata/sgen-gc.h"
-#include "metadata/sgen-pinning.h"
-#include "metadata/sgen-protocol.h"
-#include "metadata/sgen-pointer-queue.h"
-#include "metadata/sgen-client.h"
#include <string.h>
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-pinning.h"
+#include "mono/metadata/sgen-protocol.h"
+#include "mono/metadata/sgen-pointer-queue.h"
+#include "mono/metadata/sgen-client.h"
static SgenPointerQueue pin_queue;
static size_t last_num_pinned = 0;
#ifndef __MONO_SGEN_PINNING_H__
#define __MONO_SGEN_PINNING_H__
-#include "metadata/sgen-pointer-queue.h"
+#include "mono/metadata/sgen-pointer-queue.h"
enum {
PIN_TYPE_STACK,
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "metadata/sgen-gc.h"
-#include "metadata/sgen-pointer-queue.h"
-
#ifdef HAVE_SGEN_GC
#include <string.h>
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-pointer-queue.h"
+
void
sgen_pointer_queue_clear (SgenPointerQueue *queue)
{
#include "sgen-memory-governor.h"
#include "sgen-thread-pool.h"
#include "sgen-client.h"
+#include "mono/utils/mono-membar.h"
#include <errno.h>
#include <string.h>
#include "config.h"
#ifdef HAVE_SGEN_GC
-#include "metadata/sgen-gc.h"
-#include "metadata/sgen-protocol.h"
-#include "metadata/sgen-layout-stats.h"
-#include "metadata/sgen-client.h"
#include <string.h>
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-protocol.h"
+#include "mono/metadata/sgen-layout-stats.h"
+#include "mono/metadata/sgen-client.h"
static inline char*
alloc_for_promotion (GCVTable *vtable, char *obj, size_t objsize, gboolean has_references)
#include "config.h"
#ifdef HAVE_SGEN_GC
-#include "metadata/sgen-gc.h"
-#include "metadata/sgen-protocol.h"
-#include "metadata/sgen-layout-stats.h"
-#include "metadata/sgen-client.h"
-#include "utils/mono-memory-model.h"
#include <string.h>
#include <stdlib.h>
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-protocol.h"
+#include "mono/metadata/sgen-layout-stats.h"
+#include "mono/metadata/sgen-client.h"
+#include "mono/utils/mono-memory-model.h"
/*
The nursery is logically divided into 3 spaces: Allocator space and two Survivor spaces.
#include "config.h"
#ifdef HAVE_SGEN_GC
-#include "metadata/sgen-gc.h"
-#include "metadata/sgen-workers.h"
-#include "metadata/sgen-thread-pool.h"
-#include "utils/mono-counters.h"
-#include "metadata/sgen-client.h"
-#include <string.h>
-
+#include "mono/metadata/sgen-gc.h"
+#include "mono/metadata/sgen-workers.h"
+#include "mono/metadata/sgen-thread-pool.h"
+#include "mono/utils/mono-counters.h"
+#include "mono/metadata/sgen-client.h"
static int workers_num;
static WorkerData *workers_data;