Skip to content

Commit 150687b

Browse files
committed
design: add proposal for a soft memory limit
For golang/go#48409. Change-Id: I4e5d6d117982f51108dca83a8e59b118c2b6f4bf Reviewed-on: https://go-review.googlesource.com/c/proposal/+/350116 Reviewed-by: Michael Pratt <[email protected]>
1 parent d4addab commit 150687b

18 files changed

+1139
-0
lines changed

design/48409-soft-memory-limit.md

Lines changed: 556 additions & 0 deletions
Large diffs are not rendered by default.

design/48409/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Design document
2+
3+
The GC pacer design document is generated from the `.src.md` file in this
4+
directory.
5+
It contains LaTeX formulas which Markdown cannot render, so they're
6+
rendered by an external open-source tool,
7+
[md-latex](https://github.com/mknyszek/md-tools).
8+
9+
Then, because Gitiles' markdown viewer can't render SVGs, run
10+
11+
```
12+
./svg2png.bash
13+
cd pacer-plots
14+
./svg2png.bash
15+
cd ..
16+
```
17+
18+
And go back and replace all instances of SVG with PNG in the final document.
19+
20+
Note that `svg2png.bash` requires both ImageMagick and Google Chrome.
21+

design/48409/eqn1.png

1012 Bytes
Loading

design/48409/eqn2.png

1.62 KB
Loading

design/48409/inl1.png

399 Bytes
Loading

design/48409/inl10.png

455 Bytes
Loading

design/48409/inl11.png

368 Bytes
Loading

design/48409/inl12.png

755 Bytes
Loading

design/48409/inl2.png

370 Bytes
Loading

design/48409/inl3.png

486 Bytes
Loading

design/48409/inl4.png

434 Bytes
Loading

design/48409/inl5.png

400 Bytes
Loading

design/48409/inl6.png

374 Bytes
Loading

design/48409/inl7.png

462 Bytes
Loading

design/48409/inl8.png

482 Bytes
Loading

design/48409/inl9.png

449 Bytes
Loading

design/48409/soft-memory-limit.src.md

Lines changed: 554 additions & 0 deletions
Large diffs are not rendered by default.

design/48409/svg2png.bash

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
for input in *.svg; do
4+
output=${input%.*}.png
5+
google-chrome --headless --window-size=1920,1080 --disable-gpu --screenshot $input
6+
convert screenshot.png -trim $output
7+
done
8+
rm screenshot.png

0 commit comments

Comments
 (0)