X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fsgen-client-mono.h;h=54630c6ee033853a8ac63065b70eb7cfa1f3a100;hb=56ad8f4e5dfb8198e4671f631a3103b1e8b83dd3;hp=71906968539f8ebb845ab1f53f5de001d4b8b222;hpb=2dc628d36f9ebd44d25126bfba00cffc6c2df8e4;p=mono.git diff --git a/mono/metadata/sgen-client-mono.h b/mono/metadata/sgen-client-mono.h index 71906968539..54630c6ee03 100644 --- a/mono/metadata/sgen-client-mono.h +++ b/mono/metadata/sgen-client-mono.h @@ -3,18 +3,7 @@ * * Copyright (C) 2014 Xamarin Inc * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License 2.0 as published by the Free Software Foundation; - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License 2.0 along with this library; if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #ifdef SGEN_DEFINE_OBJECT_VTABLE @@ -660,6 +649,46 @@ sgen_client_binary_protocol_gray_dequeue (gpointer queue, gpointer cursor, gpoin { } +static void G_GNUC_UNUSED +sgen_client_binary_protocol_major_card_table_scan_start (long long timestamp, gboolean mod_union) +{ +} + +static void G_GNUC_UNUSED +sgen_client_binary_protocol_major_card_table_scan_end (long long timestamp, gboolean mod_union) +{ +} + +static void G_GNUC_UNUSED +sgen_client_binary_protocol_los_card_table_scan_start (long long timestamp, gboolean mod_union) +{ +} + +static void G_GNUC_UNUSED +sgen_client_binary_protocol_los_card_table_scan_end (long long timestamp, gboolean mod_union) +{ +} + +static void G_GNUC_UNUSED +sgen_client_binary_protocol_finish_gray_stack_start (long long timestamp, int generation) +{ +} + +static void G_GNUC_UNUSED +sgen_client_binary_protocol_finish_gray_stack_end (long long timestamp, int generation) +{ +} + +static void G_GNUC_UNUSED +sgen_client_binary_protocol_worker_finish (long long timestamp, gboolean forced) +{ +} + +static void G_GNUC_UNUSED +sgen_client_binary_protocol_evacuating_blocks (size_t block_size) +{ +} + int sgen_thread_handshake (BOOL suspend); gboolean sgen_suspend_thread (SgenThreadInfo *info); gboolean sgen_resume_thread (SgenThreadInfo *info); @@ -675,8 +704,6 @@ extern MonoNativeTlsKey thread_info_key; #define IN_CRITICAL_REGION (__thread_info__->client_info.in_critical_region) #endif -#ifndef DISABLE_CRITICAL_REGION - #ifdef HAVE_KW_THREAD #define IN_CRITICAL_REGION sgen_thread_info->client_info.in_critical_region #else @@ -691,11 +718,9 @@ extern MonoNativeTlsKey thread_info_key; */ #define EXIT_CRITICAL_REGION do { mono_atomic_store_release (&IN_CRITICAL_REGION, 0); } while (0) -#endif - #define SGEN_TV_DECLARE(name) gint64 name #define SGEN_TV_GETTIME(tv) tv = mono_100ns_ticks () -#define SGEN_TV_ELAPSED(start,end) ((long)(end-start)) +#define SGEN_TV_ELAPSED(start,end) ((gint64)(end-start)) typedef MonoSemType SgenSemaphore;