<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/runtime/lfstack_64bit.go, branch json-isValidNumber</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=json-isValidNumber</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=json-isValidNumber'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2022-08-04T05:33:40Z</updated>
<entry>
<title>runtime: support riscv64 SV57 mode</title>
<updated>2022-08-04T05:33:40Z</updated>
<author>
<name>Dmitry Vyukov</name>
<email>dvyukov@google.com</email>
</author>
<published>2022-05-27T16:55:35Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=1e3c19f3fee12e5e2b7802a54908a4d4d03960da'/>
<id>urn:sha1:1e3c19f3fee12e5e2b7802a54908a4d4d03960da</id>
<content type='text'>
riscv64 has SV57 mode when user-space VA is 56 bits.
Linux kernel recently got support for this mode and Go binaries started crashing as:

runtime: lfstack.push invalid packing: node=0xffffff5908a940 cnt=0x1
packed=0xffff5908a9400001 -&gt; node=0xffff5908a940

Adjust lfstack code to use only 8 top bits of pointers on riscv64.

For context see:
https://groups.google.com/g/syzkaller-bugs/c/lU0GQTZoNQQ/m/O_c3vmE3AAAJ

Update #54104

Change-Id: Ib5d3d6a79c0c6eddf11618d73fcc8bc1832a9c25
Reviewed-on: https://go-review.googlesource.com/c/go/+/409055
Reviewed-by: Joel Sing &lt;joel@sing.id.au&gt;
Reviewed-by: Meng Zhuo &lt;mzh@golangcn.org&gt;
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
</content>
</entry>
<entry>
<title>runtime: add build tag for common support on linux/loong64</title>
<updated>2022-05-20T15:12:37Z</updated>
<author>
<name>Xiaodong Liu</name>
<email>liuxiaodong@loongson.cn</email>
</author>
<published>2022-05-19T12:01:10Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=0811559dddd89d90275ebae363c5166d3c29c29d'/>
<id>urn:sha1:0811559dddd89d90275ebae363c5166d3c29c29d</id>
<content type='text'>
Contributors to the loong64 port are:
  Weining Lu &lt;luweining@loongson.cn&gt;
  Lei Wang &lt;wanglei@loongson.cn&gt;
  Lingqin Gong &lt;gonglingqin@loongson.cn&gt;
  Xiaolin Zhao &lt;zhaoxiaolin@loongson.cn&gt;
  Meidan Li &lt;limeidan@loongson.cn&gt;
  Xiaojuan Zhai &lt;zhaixiaojuan@loongson.cn&gt;
  Qiyuan Pu &lt;puqiyuan@loongson.cn&gt;
  Guoqi Chen &lt;chenguoqi@loongson.cn&gt;

This port has been updated to Go 1.15.6:
  https://github.com/loongson/go

Updates #46229

Change-Id: Ide01fb8a39fe3e890f6cbc5d28f4a1d47eb5d79b
Reviewed-on: https://go-review.googlesource.com/c/go/+/368081
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor)</title>
<updated>2021-10-28T18:17:57Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2021-08-25T16:48:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=f229e7031a6efb2f23241b5da000c3b3203081d6'/>
<id>urn:sha1:f229e7031a6efb2f23241b5da000c3b3203081d6</id>
<content type='text'>
When these packages are released as part of Go 1.18,
Go 1.16 will no longer be supported, so we can remove
the +build tags in these files.

Ran go fix -fix=buildtag std cmd and then reverted the bootstrapDirs
as defined in src/cmd/dist/buildtool.go, which need to continue
to build with Go 1.4 for now.

Also reverted src/vendor and src/cmd/vendor, which will need
to be updated in their own repos first.

Manual changes in runtime/pprof/mprof_test.go to adjust line numbers.

For #41184.

Change-Id: Ic0f93f7091295b6abc76ed5cd6e6746e1280861e
Reviewed-on: https://go-review.googlesource.com/c/go/+/344955
Trust: Russ Cox &lt;rsc@golang.org&gt;
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Bryan C. Mills &lt;bcmills@google.com&gt;
</content>
</entry>
<entry>
<title>all: go fmt std cmd (but revert vendor)</title>
<updated>2021-02-20T03:54:50Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2021-02-19T23:35:10Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=d4b26382342c98a95b85140b2863bc30c48edd68'/>
<id>urn:sha1:d4b26382342c98a95b85140b2863bc30c48edd68</id>
<content type='text'>
Make all our package sources use Go 1.17 gofmt format
(adding //go:build lines).

Part of //go:build change (#41184).
See https://golang.org/design/draft-gobuild

Change-Id: Ia0534360e4957e58cd9a18429c39d0e32a6addb4
Reviewed-on: https://go-review.googlesource.com/c/go/+/294430
Trust: Russ Cox &lt;rsc@golang.org&gt;
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>runtime: add support for linux/riscv64</title>
<updated>2020-01-19T14:04:09Z</updated>
<author>
<name>Joel Sing</name>
<email>joel@sing.id.au</email>
</author>
<published>2019-11-03T17:58:37Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=8e0be05ec7c369387c0ed3c9cf37968c6d3afbbd'/>
<id>urn:sha1:8e0be05ec7c369387c0ed3c9cf37968c6d3afbbd</id>
<content type='text'>
Based on riscv-go port.

Updates #27532

Change-Id: If522807a382130be3c8d40f4b4c1131d1de7c9e3
Reviewed-on: https://go-review.googlesource.com/c/go/+/204632
Run-TryBot: Joel Sing &lt;joel@sing.id.au&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Keith Randall &lt;khr@golang.org&gt;
</content>
</entry>
<entry>
<title>runtime: handle 64bits addresses for AIX</title>
<updated>2018-11-26T14:06:28Z</updated>
<author>
<name>Clément Chigot</name>
<email>clement.chigot@atos.net</email>
</author>
<published>2018-10-01T07:58:40Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=041526c6ef669743afc6c4b757b95011f1475d1a'/>
<id>urn:sha1:041526c6ef669743afc6c4b757b95011f1475d1a</id>
<content type='text'>
This commit allows the runtime to handle 64bits addresses returned by
mmap syscall on AIX.

Mmap syscall returns addresses on 59bits on AIX. But the Arena
implementation only allows addresses with less than 48 bits.
This commit increases the arena size up to 1&lt;&lt;60 for aix/ppc64.

Update: #25893

Change-Id: Iea72e8a944d10d4f00be915785e33ae82dd6329e
Reviewed-on: https://go-review.googlesource.com/c/138736
Reviewed-by: Austin Clements &lt;austin@google.com&gt;
</content>
</entry>
<entry>
<title>runtime: add js/wasm architecture</title>
<updated>2018-05-08T00:17:34Z</updated>
<author>
<name>Richard Musiol</name>
<email>mail@richard-musiol.de</email>
</author>
<published>2018-03-31T21:14:17Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=35ea62468bf7e3a79011c3ad713e847daa9a45a2'/>
<id>urn:sha1:35ea62468bf7e3a79011c3ad713e847daa9a45a2</id>
<content type='text'>
This commit adds the js/wasm architecture to the runtime package.
Currently WebAssembly has no support for threads yet, see
https://github.com/WebAssembly/design/issues/1073. Because of that,
there is no preemption of goroutines and no sysmon goroutine.

Design doc: https://docs.google.com/document/d/131vjr4DH6JFnb-blm_uRdaC0_Nv3OUwjEY5qVCxCup4
About WebAssembly assembly files: https://docs.google.com/document/d/1GRmy3rA4DiYtBlX-I1Jr_iHykbX8EixC3Mq0TCYqbKc

Updates #18892

Change-Id: I7f12d21b5180500d55ae9fd2f7e926a1731db391
Reviewed-on: https://go-review.googlesource.com/103877
Run-TryBot: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Austin Clements &lt;austin@google.com&gt;
</content>
</entry>
<entry>
<title>runtime: clarify address space limit constants and comments</title>
<updated>2018-02-21T20:32:36Z</updated>
<author>
<name>Austin Clements</name>
<email>austin@google.com</email>
</author>
<published>2018-02-20T16:59:02Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=ea8d7a370d66550d587414cc0cab650f35400f94'/>
<id>urn:sha1:ea8d7a370d66550d587414cc0cab650f35400f94</id>
<content type='text'>
Now that we support the full non-contiguous virtual address space of
amd64 hardware, some of the comments and constants related to this are
out of date.

This renames memLimitBits to heapAddrBits because 1&lt;&lt;memLimitBits is
no longer the limit of the address space and rewrites the comment to
focus first on hardware limits (which span OSes) and then discuss
kernel limits.

Second, this eliminates the memLimit constant because there's no
longer a meaningful "highest possible heap pointer value" on amd64.

Updates #23862.

Change-Id: I44b32033d2deb6b69248fb8dda14fc0e65c47f11
Reviewed-on: https://go-review.googlesource.com/95498
Run-TryBot: Austin Clements &lt;austin@google.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Rick Hudson &lt;rlh@golang.org&gt;
</content>
</entry>
<entry>
<title>runtime: move comment about address space sizes to malloc.go</title>
<updated>2018-02-15T21:12:25Z</updated>
<author>
<name>Austin Clements</name>
<email>austin@google.com</email>
</author>
<published>2018-01-01T22:53:59Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=90666b8a3d5545f4295d9c2517ad607ce5d45e52'/>
<id>urn:sha1:90666b8a3d5545f4295d9c2517ad607ce5d45e52</id>
<content type='text'>
Currently there's a detailed comment in lfstack_64bit.go about address
space limitations on various architectures. Since that's now relevant
to malloc, move it to a more prominent place in the documentation for
memLimitBits.

Updates #10460.

Change-Id: If9708291cf3a288057b8b3ba0ba6a59e3602bbd6
Reviewed-on: https://go-review.googlesource.com/85889
Run-TryBot: Austin Clements &lt;austin@google.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Rick Hudson &lt;rlh@golang.org&gt;
</content>
</entry>
<entry>
<title>runtime: expand/update lfstack address space assumptions</title>
<updated>2018-02-15T21:12:09Z</updated>
<author>
<name>Austin Clements</name>
<email>austin@google.com</email>
</author>
<published>2017-12-03T23:08:57Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=981d0495b7ed6e1a5fb0fba818bdc2bf9d4b13fa'/>
<id>urn:sha1:981d0495b7ed6e1a5fb0fba818bdc2bf9d4b13fa</id>
<content type='text'>
I was spelunking Linux's address space code and found that some of the
information about maximum virtual addresses in lfstack's comments was
out of date. This expands and updates the comment.

Change-Id: I9f54b23e6b266b3c5cc20259a849231fb751f6e7
Reviewed-on: https://go-review.googlesource.com/85875
Run-TryBot: Austin Clements &lt;austin@google.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Rick Hudson &lt;rlh@golang.org&gt;
</content>
</entry>
</feed>
