[Mono-bugs] [Bug 61134][Min] Changed - GCHandle.AddrOfPinnedObject gives incorrect address

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 14 Jul 2004 13:44:08 -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 lupus@ximian.com.

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

--- shadow/61134	2004-07-05 07:14:34.000000000 -0400
+++ shadow/61134.tmp.10558	2004-07-14 13:44:08.000000000 -0400
@@ -3,13 +3,13 @@
 Version: unspecified
 OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
 Severity: Unknown
-Priority: Major
+Priority: Minor
 Component: misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: mathpup@mylinuxisp.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
@@ -165,6 +165,18 @@
 [127][0][0][0][255][255][0][0]...?...?...?
 CustomStruct:
 [127][0][0][0][255][255][0][0]...?...?...?
 CustomStruct:
 [0][0][0][0][0][0][0][0]...?...?...?
 
+
+------- Additional Comments From lupus@ximian.com  2004-07-14 13:44 -------
+Most of the bug is fixed: we return the correct pointer now, but we
+don't disallow yet the creation of a GC handle for some of the types
+(with auto layout ot non-blittable types).
+The current klass->blittable field doesn't match with what the MS
+runtime considers blittable, we need more checks to see how the
+changes affect the marshal code where currently the field is used.
+We need also a bit of refactoring: the code in metadata/gc.c is used
+also to provide the runtime internl GC handle support and in that case
+we need to be able to get a handle even if doing it from the C# side
+would result in an error.