Re: [go-nuts] Go Runtime sharing with buildmode=c-shared

2022-08-04 Thread Ian Lance Taylor
On Thu, Aug 4, 2022 at 12:16 PM Nikita Rirush wrote: > > Does that mean that writing plugins, e.g. for SQLite, can cause issues when > multiple Go extensions are loaded in the same process? > Or is this use-case actually safe, and issues can start to happen only when > there's a Go host and a Go

Re: [go-nuts] Go Runtime sharing with buildmode=c-shared

2022-08-04 Thread Nikita Rirush
Ok, thank you! Does that mean that writing plugins, e.g. for SQLite, can cause issues when multiple Go extensions are loaded in the same process? Or is this use-case actually safe, and issues can start to happen only when there's a Go host and a Go c-shared library in the same process? On Thurs

Re: [go-nuts] Go Runtime sharing with buildmode=c-shared

2022-08-04 Thread Ian Lance Taylor
On Thu, Aug 4, 2022 at 11:45 AM Nikita Rirush wrote: > > I recently stumbled onto a project that implements an SQLite extension in Go > as a c-shared library, and wondered if Go shares its runtime between multiple > c-shared Go libraries in the same process. > > I tried searching for issues on G

[go-nuts] Go Runtime sharing with buildmode=c-shared

2022-08-04 Thread Nikita Rirush
Greetings! I recently stumbled onto a project that implements an SQLite extension in Go as a c-shared library, and wondered if Go shares its runtime between multiple c-shared Go libraries in the same process. I tried searching for issues on Github and through this group, but I wasn't able to f