Thanks
On Thursday, April 21, 2022 at 6:37:10 AM UTC+8 Ian Lance Taylor wrote:

> On Wed, Apr 20, 2022 at 6:31 AM Lanzhiguan Huang
> <huangla...@gmail.com> wrote:
> >
> > In gc's implementation, the itab struct has an interface type and an 
> object type field and a method table, while in the GoLLVM's implementation, 
> the type descriptor was moved to the first field of the method table. I 
> think they just maintain the same information but do not understand the 
> purposes of the design. Currently the difference may cause incompatibility 
> between the two compilers.
>
> There is no safe way for Go code to ever see these structures, so the
> difference should not matter to any ordinary Go programs.
>
> At this point I don't think there is any deep reason for the slightly
> different design. Historically it was because the gc implementation
> used a runtime cache, but these days the gofrontend implementation
> used by GoLLVM also uses a runtime cache.
>
> Ian
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/1c141a39-1cfb-484a-a61f-03becd8ed590n%40googlegroups.com.

Reply via email to