/* FIXME: handle OOM */
void **p;
char *new_next;
+ SgenThreadInfo *__thread_info__;
TLAB_ACCESS_INIT;
HEAVY_STAT (++stat_objects_alloced);
{
void **p;
char *new_next;
+ SgenThreadInfo *__thread_info__;
TLAB_ACCESS_INIT;
size = ALIGN_UP (size);
mono_gc_alloc_obj (MonoVTable *vtable, size_t size)
{
void *res;
+ SgenThreadInfo *__thread_info__;
if (!SGEN_CAN_ALIGN_UP (size))
return NULL;
mono_gc_alloc_vector (MonoVTable *vtable, size_t size, uintptr_t max_length)
{
MonoArray *arr;
+ SgenThreadInfo *__thread_info__;
if (!SGEN_CAN_ALIGN_UP (size))
return NULL;
{
MonoArray *arr;
MonoArrayBounds *bounds;
+ SgenThreadInfo *__thread_info__;
if (!SGEN_CAN_ALIGN_UP (size))
return NULL;
mono_gc_alloc_string (MonoVTable *vtable, size_t size, gint32 len)
{
MonoString *str;
-
+ SgenThreadInfo *__thread_info__;
if (!SGEN_CAN_ALIGN_UP (size))
return NULL;
static void
sgen_card_table_wbarrier_value_copy (gpointer dest, gpointer src, int count, MonoClass *klass)
{
+ SgenThreadInfo *__thread_info__;
size_t element_size = mono_class_value_size (klass, NULL);
size_t size = count * element_size;
static void
sgen_card_table_wbarrier_object_copy (MonoObject* obj, MonoObject *src)
{
+ SgenThreadInfo *__thread_info__;
int size = mono_object_class (obj)->instance_size;
#ifdef DISABLE_CRITICAL_REGION
#define TLAB_ACCESS_INIT
#define IN_CRITICAL_REGION sgen_thread_info->in_critical_region
#else
-#define TLAB_ACCESS_INIT SgenThreadInfo *__thread_info__ = mono_native_tls_get_value (thread_info_key)
+#define TLAB_ACCESS_INIT __thread_info__ = mono_native_tls_get_value (thread_info_key)
#define IN_CRITICAL_REGION (__thread_info__->in_critical_region)
#endif