[Mono-bugs] [Bug 56208][Nor] Changed - [PATCH] Marshal.UnsafeAddrOfPinnedArrayElement patches

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 4 Apr 2004 11:20:12 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=56208

--- shadow/56208	2004-04-03 21:45:22.000000000 -0500
+++ shadow/56208.tmp.27667	2004-04-04 11:20:12.000000000 -0400
@@ -27,6 +27,19 @@
 
 
 ------- Additional Comments From vladimir@pobox.com  2004-03-30 02:26 -------
 Created an attachment (id=7140)
 mono_arrayaddr.patch
 
+
+------- Additional Comments From bmaurer@users.sf.net  2004-04-04 11:20 -------
+It would be pretty easy to make an opcode in this for mini so that it
+was fast (look at ldelema, but just do it without the bounds check.
+also,you will have to access the vtable->klass to find out the element
+size).
+
+MSDN says:
+`For maximum performance, this method does no validation on the array
+passed to it; this can result in unexpected behavior.', so it sounds
+like they think it is a method that needs to be performant.
+
+not really a big issue though.