Re: [Mono-dev] boehm and pin to sgen and moveable

2015-10-04 Thread Robert Jordan
Hey Jonathan, On 03.10.2015 16:25, Jonathan Mitchell wrote: In my ObjC->Mono bridge I have been using the Boehm collector and pinned memory (as an expedient). I now want to move to SGEN and moveable memory. As a first step I have switched to SGEN and left pinning enabled. My ObjC code wraps a

Re: [Mono-dev] boehm and pin to sgen and moveable

2015-10-04 Thread Jonathan Mitchell
Robert > On 4 Oct 2015, at 19:02, Robert Jordan wrote: > > Hey Jonathan, > > On 03.10.2015 16:25, Jonathan Mitchell wrote: >> >> >> Under the Boehm collector objects seem to stay pinned as requested. >> Under SGEN they don’t i.e.: the exception in the second method below

[Mono-dev] boehm and pin to sgen and moveable

2015-10-03 Thread Jonathan Mitchell
In my ObjC->Mono bridge I have been using the Boehm collector and pinned memory (as an expedient). I now want to move to SGEN and moveable memory. As a first step I have switched to SGEN and left pinning enabled. My ObjC code wraps a MonoObject * in an NSObject. When the MonoObject is set it is