Re: [Mono-dev] how-to-protect-object-created-by-mono-object-new-from-gc

2018-04-06 Thread xiaozhu
Thanks -- Original -- From: "Bernhard Urban"<beu...@microsoft.com>; Date: Fri, Apr 6, 2018 07:01 PM To: "xiaozhu"<niluzhou1...@foxmail.com>;"mono-devel-list"<mono-devel-list@lists.dot.net>; Subject: Re: [Mono-

Re: [Mono-dev] how-to-protect-object-created-by-mono-object-new-from-gc

2018-04-06 Thread Bernhard Urban via Mono-devel-list
It shouldn't be, because there will be a reference on the native stack or machine registers between step1 and step2 and those areas will be scanned by the garbage collector. -Bernhard From: Mono-devel-list on