[runtime] Convert String.InternalSetLength to an icall. Needed for canary support.
[mono.git] / mono / metadata / string-icalls.c
index 388d866141fad205fb9ccee43287e03d77d62b86..22b1fbbbdb49a2aed23b58776bc07811f7c39496 100644 (file)
@@ -67,3 +67,10 @@ ves_icall_System_String_GetLOSLimit (void)
 
        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);
+}
+