2 * Copyright 2011 Xamarin Inc (http://www.xamarin.com)
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the
6 * "Software"), to deal in the Software without restriction, including
7 * without limitation the rights to use, copy, modify, merge, publish,
8 * distribute, sublicense, and/or sell copies of the Software, and to
9 * permit persons to whom the Software is furnished to do so, subject to
10 * the following conditions:
12 * The above copyright notice and this permission notice shall be
13 * included in all copies or substantial portions of the Software.
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 #ifndef __MONO_SGEN_PINNING_H__
24 #define __MONO_SGEN_PINNING_H__
33 void sgen_pin_stage_ptr (void *ptr) MONO_INTERNAL;
34 void sgen_optimize_pin_queue (int start_slot) MONO_INTERNAL;
35 void sgen_init_pinning (void) MONO_INTERNAL;
36 void sgen_finish_pinning (void) MONO_INTERNAL;
37 void sgen_pin_queue_clear_discarded_entries (GCMemSection *section, int max_pin_slot) MONO_INTERNAL;
38 int sgen_get_pinned_count (void) MONO_INTERNAL;
39 void sgen_pinning_setup_section (GCMemSection *section) MONO_INTERNAL;
40 void sgen_pinning_trim_queue_to_section (GCMemSection *section) MONO_INTERNAL;
42 void sgen_dump_pin_queue (void) MONO_INTERNAL;
46 void sgen_pin_stats_register_address (char *addr, int pin_type) MONO_INTERNAL;
47 size_t sgen_pin_stats_get_pinned_byte_count (int pin_type) MONO_INTERNAL;
48 ObjectList *sgen_pin_stats_get_object_list (void) MONO_INTERNAL;
49 void sgen_pin_stats_reset (void) MONO_INTERNAL;