again the array resize bug, need to report this.
looks like __gshared dynamic array cannot be resized on darwin if created in compile time.