Re: [go-nuts] It looks making a slice with size 32768+1 will allocate with one memory page as needed

2021-06-12 Thread tapi...@gmail.com
On Saturday, June 12, 2021 at 12:04:21 PM UTC-4 Ian Lance Taylor wrote: > On Fri, Jun 11, 2021 at 11:21 PM tapi...@gmail.com > wrote: > > > > It looks the _PageSize constant used in allocating large memory block is > declared as 8192 in code, but os.Getpagesize() returns 4096. > > > > con

Re: [go-nuts] It looks making a slice with size 32768+1 will allocate with one memory page as needed

2021-06-12 Thread Ian Lance Taylor
On Fri, Jun 11, 2021 at 11:21 PM tapi...@gmail.com wrote: > > It looks the _PageSize constant used in allocating large memory block is > declared as 8192 in code, but os.Getpagesize() returns 4096. > > const ( > ... > _PageShift = 13 > _PageSize = 1 << _PageShift > ... > ) >

Re: [go-nuts] Re: Where can I get a complete list of enhancements or changes of the golang spec (Version of Feb 10, 2021) agaisnt previous (Version of Jan 14, 2020)

2021-06-12 Thread 'Axel Wagner' via golang-nuts
(Note: this is against the recently released go1.17beta1, so it is ahead of the latest release and might, theoretically, still change before go1.17 is released) On Sat, Jun 12, 2021 at 5:16 PM Axel Wagner wrote: > For your convenience: https://pastebin.pl/view/308d1b73 > > On Sat, Jun 12, 2021 a

Re: [go-nuts] Re: Where can I get a complete list of enhancements or changes of the golang spec (Version of Feb 10, 2021) agaisnt previous (Version of Jan 14, 2020)

2021-06-12 Thread 'Axel Wagner' via golang-nuts
For your convenience: https://pastebin.pl/view/308d1b73 On Sat, Jun 12, 2021 at 5:15 PM 'Carla Pfaff' via golang-nuts < golang-nuts@googlegroups.com> wrote: > On Saturday, 12 June 2021 at 16:53:01 UTC+2 Benjamin wrote: > >> >> Previously it took a long time to read through the golang spec of vers

[go-nuts] Re: Where can I get a complete list of enhancements or changes of the golang spec (Version of Feb 10, 2021) agaisnt previous (Version of Jan 14, 2020)

2021-06-12 Thread 'Carla Pfaff' via golang-nuts
On Saturday, 12 June 2021 at 16:53:01 UTC+2 Benjamin wrote: > > Previously it took a long time to read through the golang spec of version > of Jan 14, 2020. The newest golang spec is Version of Feb 10, 2021. I > really don't want to read through all the spec again. Is there a summary on > the c

Re: [go-nuts] Where can I get a complete list of enhancements or changes of the golang spec (Version of Feb 10, 2021) agaisnt previous (Version of Jan 14, 2020)

2021-06-12 Thread 'Axel Wagner' via golang-nuts
Hi, the best summaries can be found in the Release history . Otherwise, the best way is probably to look at the git history of the relevant file . You can also find two relevant commits for the time

[go-nuts] Where can I get a complete list of enhancements or changes of the golang spec (Version of Feb 10, 2021) agaisnt previous (Version of Jan 14, 2020)

2021-06-12 Thread Benjamin
Previously it took a long time to read through the golang spec of version of Jan 14, 2020. The newest golang spec is Version of Feb 10, 2021. I really don't want to read through all the spec again. Is there a summary on the changes between the two versions? Thanks. -- You received this messa

Re: [go-nuts] times of stw in one gc cycle?

2021-06-12 Thread Rick Hudson
It won't go on forever. The formal proofs are in the original Sapphire and distributed Train algorithm papers. Informally the proofs show that there is no way to create a new white object, no way to pass white object between threads more than a bounded number of times, reachable non-black objec

[go-nuts] Re: It's possible to replace cgo memory allocator?

2021-06-12 Thread Tamás Gulácsi
You can use the LD_PRELOAD env var (https://www.ibm.com/docs/en/spectrum-symphony/7.2.1?topic=optimization-optimizing-memory-consumption-tcmalloc-jemalloc) to use jemalloc or tcmalloc, and debug with them. di3go.b...@gmail.com a következőt írta (2021. június 10., csütörtök, 21:19:15 UTC+2): >