Imported Upstream version 4.2.1.124

Former-commit-id: 3b6a300a4ce80578c93599ba6e26a8f66743cde0
This commit is contained in:
Xamarin Public Jenkins
2015-12-09 05:54:53 -05:00
parent 4c37e28ac4
commit d11e8b35fd
33 changed files with 84 additions and 76 deletions

View File

@@ -120,8 +120,6 @@ static const MonoRuntimeInfo *current_runtime = NULL;
*/
static const MonoRuntimeInfo supported_runtimes[] = {
{"v4.0.30319","4.5", { {4,0,0,0}, {10,0,0,0}, {4,0,0,0}, {4,0,0,0} } },
{"v4.0.30128","4.0", { {4,0,0,0}, {10,0,0,0}, {4,0,0,0}, {4,0,0,0} } },
{"v4.0.20506","4.0", { {4,0,0,0}, {10,0,0,0}, {4,0,0,0}, {4,0,0,0} } },
{"mobile", "2.1", { {2,0,5,0}, {10,0,0,0}, {2,0,5,0}, {2,0,5,0} } },
{"moonlight", "2.1", { {2,0,5,0}, { 9,0,0,0}, {3,5,0,0}, {3,0,0,0} } },
};

View File

@@ -749,7 +749,7 @@ EXTRA_DIST = TestDriver.cs \
Makefile.am.in
version.h: Makefile
echo "#define FULL_VERSION \"Stable 4.2.1.102/6dd2d0d\"" > version.h
echo "#define FULL_VERSION \"Stable 4.2.1.124/39edf24\"" > version.h
# Utility target for patching libtool to speed up linking
patch-libtool:

View File

@@ -749,7 +749,7 @@ EXTRA_DIST = TestDriver.cs \
Makefile.am.in
version.h: Makefile
echo "#define FULL_VERSION \"Stable 4.2.1.102/6dd2d0d\"" > version.h
echo "#define FULL_VERSION \"Stable 4.2.1.124/39edf24\"" > version.h
# Utility target for patching libtool to speed up linking
patch-libtool:

View File

@@ -1 +1 @@
93d782893e1caf2f8a1ed7b26a892c99955b11e1
3cfd458f71bd744fd88bb6d83cb1577e532349ed

View File

@@ -1 +1 @@
cb63252e0018b9aefb43fe181130006eafb121b8
cfb7eed7bb4f48fe36aa3b8c99187b233fb8ed25

View File

@@ -1 +1 @@
bf88f17bace11357a53f5ac7a00bdefc6a4588ee
f71435042be76f9c1351b68ab479e824c9cd68f3

View File

@@ -882,11 +882,11 @@ class_type_info (MonoDomain *domain, MonoClass *class, MonoRgctxInfoType info_ty
return GUINT_TO_POINTER (mono_class_value_size (class, NULL));
case MONO_RGCTX_INFO_CLASS_BOX_TYPE:
if (MONO_TYPE_IS_REFERENCE (&class->byval_arg))
return GUINT_TO_POINTER (1);
return GUINT_TO_POINTER (MONO_GSHAREDVT_BOX_TYPE_REF);
else if (mono_class_is_nullable (class))
return GUINT_TO_POINTER (2);
return GUINT_TO_POINTER (MONO_GSHAREDVT_BOX_TYPE_NULLABLE);
else
return GUINT_TO_POINTER (0);
return GUINT_TO_POINTER (MONO_GSHAREDVT_BOX_TYPE_VTYPE);
case MONO_RGCTX_INFO_MEMCPY:
case MONO_RGCTX_INFO_BZERO: {
static MonoMethod *memcpy_method [17];
@@ -1236,11 +1236,11 @@ instantiate_info (MonoDomain *domain, MonoRuntimeGenericContextInfoTemplate *oti
impl_class = method->klass;
if (MONO_TYPE_IS_REFERENCE (&impl_class->byval_arg))
return GUINT_TO_POINTER (1);
return GUINT_TO_POINTER (MONO_GSHAREDVT_BOX_TYPE_REF);
else if (mono_class_is_nullable (impl_class))
return GUINT_TO_POINTER (2);
return GUINT_TO_POINTER (MONO_GSHAREDVT_BOX_TYPE_NULLABLE);
else
return GUINT_TO_POINTER (0);
return GUINT_TO_POINTER (MONO_GSHAREDVT_BOX_TYPE_VTYPE);
}
#ifndef DISABLE_REMOTING
case MONO_RGCTX_INFO_REMOTING_INVOKE_WITH_CHECK:
@@ -1253,10 +1253,11 @@ instantiate_info (MonoDomain *domain, MonoRuntimeGenericContextInfoTemplate *oti
case MONO_RGCTX_INFO_FIELD_OFFSET: {
MonoClassField *field = data;
/* The value is offset by 1 */
if (field->parent->valuetype && !(field->type->attrs & FIELD_ATTRIBUTE_STATIC))
return GUINT_TO_POINTER (field->offset - sizeof (MonoObject));
return GUINT_TO_POINTER (field->offset - sizeof (MonoObject) + 1);
else
return GUINT_TO_POINTER (field->offset);
return GUINT_TO_POINTER (field->offset + 1);
}
case MONO_RGCTX_INFO_METHOD_RGCTX: {
MonoMethodInflated *method = data;
@@ -1851,6 +1852,7 @@ fill_runtime_generic_context (MonoVTable *class_vtable, MonoRuntimeGenericContex
method_inst ? method_inst->type_argc : 0, slot, TRUE, TRUE, &do_free);
/* This might take the loader lock */
info = instantiate_info (domain, &oti, &context, class);
g_assert (info);
/*
if (method_inst)

View File

@@ -1 +1 @@
7c01d8b67d92f0bebbdeff1c929e982a99b7d3bb
2e5dc1ce3dbfe8e7af13b7ab7a5e73b37690cfdf

View File

@@ -1 +1 @@
#define FULL_VERSION "Stable 4.2.1.102/6dd2d0d"
#define FULL_VERSION "Stable 4.2.1.124/39edf24"

View File

@@ -76,11 +76,6 @@ mono_get_address_info (const char *hostname, int port, int flags, MonoAddressInf
while (res) {
cur = g_new0 (MonoAddressEntry, 1);
if (prev)
prev->next = cur;
else
addr_info->entries = cur;
cur->family = res->ai_family;
cur->socktype = res->ai_socktype;
cur->protocol = res->ai_protocol;
@@ -91,12 +86,20 @@ mono_get_address_info (const char *hostname, int port, int flags, MonoAddressInf
cur->address_len = sizeof (struct in6_addr);
cur->address.v6 = ((struct sockaddr_in6*)res->ai_addr)->sin6_addr;
} else {
g_error ("Cannot handle address family %d", cur->family);
g_warning ("Cannot handle address family %d", cur->family);
res = res->ai_next;
g_free (cur);
continue;
}
if (res->ai_canonname)
cur->canonical_name = g_strdup (res->ai_canonname);
if (prev)
prev->next = cur;
else
addr_info->entries = cur;
prev = cur;
res = res->ai_next;
}
@@ -339,4 +342,4 @@ mono_networking_shutdown (void)
{
//nothing really
}
#endif
#endif