I'm guessing also, that a "true" pointer has to be byte aligned - no 
pointer tagging shennanigans with unsafe.Pointer

On Wednesday, 20 December 2017 21:42:49 UTC+11, Xuanyi Chew wrote:
>
> I echo this.
>
> On Wednesday, 20 December 2017 20:55:03 UTC+11, Jan Mercl wrote:
>>
>>
>> On Wed, Dec 20, 2017 at 12:57 AM 'Keith Randall' via golang-nuts <
>> golan...@googlegroups.com> wrote:
>>
>> > Pointers that point from a Go object to somewhere outside the Go heap 
>> are perfectly fine.
>>
>> Can you please specify the exact mechanism used by the runtime to 
>> determine "is outside the Go heap"? I used unsafe.Pointers acquired from a 
>> memory allocator[0] in one project and I sometimes experienced random 
>> crashes, cause of which I'm really not certain about. I am currently 
>> rewriting that project to use uintptrs only because of that and I would 
>> love to learn more about this.
>>
>> [0]: https://github.com/cznic/memory
>>
>>
>> -- 
>>
>> -j
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to