[Mono-bugs] [Bug 544578] Crash in List<>.ToArray()

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 6 12:24:33 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=544578

User vargaz at gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544578#c2


Zoltan Varga <vargaz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vargaz at gmail.com




--- Comment #2 from Zoltan Varga <vargaz at gmail.com>  2009-10-06 10:24:32 MDT ---
ToArray () is this:


        public T [] ToArray ()
        {
            T [] t = new T [_size];
            Array.Copy (_items, t, _size);

            return t;
        }

I don't see how that can fail unless the list is concurrently modified by
another thread.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list