Merge pull request #1333 from joero74/ignore-missing-host
[mono.git] / mono / metadata / string-icalls.c
index 0927141e7925f92d753c6579aa0905c816131f22..22b1fbbbdb49a2aed23b58776bc07811f7c39496 100644 (file)
@@ -65,5 +65,12 @@ ves_icall_System_String_GetLOSLimit (void)
 {
        int limit = mono_gc_get_los_limit ();
 
-       return (limit - 2 - sizeof (MonoString)) / 2;
+       return (limit - 2 - offsetof (MonoString, chars)) / 2;
 }
+
+void
+ves_icall_System_String_InternalSetLength (MonoString *str, gint32 new_length)
+{
+       mono_gc_set_string_length (str, new_length);
+}
+