Commit Graph

30705 Commits

Author SHA1 Message Date
Joe Bryan
f8de49cf1f
Merge pull request #5882 from urbit/jb/guard-opt
u3: road stack guard page optimization
2022-07-07 13:27:56 -04:00
Peter McEvoy
abe5788daf u3: return 0 from u3e_fault() if guard page cannot be protected 2022-07-07 09:48:33 -07:00
Amadeo Bellotti
20256207a7 Fixed a double boot_lite 2022-07-07 12:47:32 -04:00
Amadeo Bellotti
063e447d56 Got basic hoon command compiling and executing 2022-07-07 12:45:22 -04:00
Peter McEvoy
b7cd97664d u3: control presence of guard page using macro 2022-07-07 09:33:41 -07:00
Amadeo Bellotti
f273fa5359 Added basic nock increment evaulation to eval function 2022-07-07 11:10:15 -04:00
fang
283e5ad1db
Revert "gall: exclude from traces"
This reverts commit b1b422ce05.
2022-07-07 16:24:03 +02:00
fang
a1b3348cdf
Revert "clay: render syntax errors at end of file"
This reverts commit 7a110db60d.
2022-07-07 16:21:43 +02:00
Amadeo Bellotti
7d7209764f Added option to run the eval it checks for and prints whatever you pass it as an arguement 2022-07-07 09:23:42 -04:00
yosoyubik
ca1b586a46 ames: init cork timer on larval +take 2022-07-07 11:35:28 +02:00
yosoyubik
d4d443db13 ames: remove cork wire from state 2022-07-07 09:20:57 +02:00
Joe Bryan
53af044d18 Revert "u3: check for road stack overflow on every nock %2 and %9"
This reverts commit 4bd4e8a4a9.
2022-07-07 01:34:05 -04:00
Joe Bryan
8fb3b1502b build: make bench is phony 2022-07-07 01:34:05 -04:00
Joe Bryan
9d5b24362e u3: failure to mprotect() the new guard page is fatal 2022-07-07 01:34:05 -04:00
Joe Bryan
f0fa528f3b u3: removes/disables obsolete road stack overflow checks 2022-07-07 01:17:16 -04:00
Joe Bryan
350406c9e1 u3: account for guard page in cellblock allocation conditional 2022-07-07 00:48:50 -04:00
Joe Bryan
b630490573 u3: bump road heap offset before allocating cellblock 2022-07-07 00:48:19 -04:00
Peter McEvoy
a2a6250d77 u3: restore missing return 0 to u3e_fault() 2022-07-06 18:42:50 -07:00
Peter McEvoy
a830db5f68 u3: initialize guard page in u3e_init() 2022-07-06 18:29:16 -07:00
Peter McEvoy
1ea6e10a36 u3: initialize guard page in u3e_live() 2022-07-06 16:09:34 -07:00
Peter McEvoy
f2d24201a5 u3: replace u3m_bail() with u3m_signal() in u3e_fault() 2022-07-06 15:33:16 -07:00
Joe Bryan
4bd4e8a4a9 u3: check for road stack overflow on every nock %2 and %9
(cherry picked from commit 9db1411bd8e8c0b8e9bf38aadb869c5fd678023b)
2022-07-06 11:40:12 -07:00
Joe Bryan
e045bfd593 u3: adds (failing) test for bail:meme
(cherry picked from commit 3a03b1de5d57201c153229db69051235a50907c0)
2022-07-06 11:40:11 -07:00
Joe Bryan
146db7b832 u3: allocate emergency buffer on every road, free on bail for trace cells
(cherry picked from commit 3a11a08b712b52805f97ceb06da8417a8b7cbde4)
2022-07-06 11:40:11 -07:00
Joe Bryan
eaf47ce0cf u3: correct u3m_soft() error result where +mook is unavailable
(cherry picked from commit bbc54b7a890845e4281d3a250fefedefb464bc8d)
2022-07-06 11:40:11 -07:00
Joe Bryan
bcdafbe206 u3: make output pointer optional in u3r_p()
(cherry picked from commit 2a0b92b4474947fcbb519d4158eae9cb3b5d6287)
2022-07-06 11:40:11 -07:00
Peter McEvoy
78cb396736 u3: use pag_siz_i and pag_wiz_i where appropriate 2022-07-06 11:40:09 -07:00
Peter McEvoy
f0cebdcab0 u3: place guard page between heap and stack 2022-07-06 11:37:35 -07:00
fang
ddf3520648
hood: re-patch |rein
Essentially reimplements #5863 in the generator, instead of the library.
2022-07-06 20:18:45 +02:00
fang
c437f1cdbd
Merge pull request #5855 from urbit/m/gall-quieter
gall: exclude from traces
2022-07-06 18:48:55 +02:00
Hunter Miller
c8a5824576 Merge branch 'next/groups' 2022-07-06 11:38:24 -05:00
Hunter Miller
5e427b6655 Merge branch 'next/groups' of github.com:urbit/urbit into next/groups 2022-07-06 11:37:45 -05:00
Hunter Miller
3f8cef1cac groups: correcting package lock yet again 2022-07-06 11:37:34 -05:00
yosoyubik
e366e55dbc ames: add global daily timer for pending corks
WIP compiles and upgrades, and the timer gets properly reset
but untested for actual re-subscriptions with old publishers
2022-07-06 17:00:35 +02:00
yosoyubik
608aba2a87 gall: handle subscriber-side %cork
this also enables increasing sub-nonces for every new subscription
TODO: create one global cork timer for all peers
2022-07-06 14:44:20 +02:00
yosoyubik
f3a60aef14 gall: don't send %cork when leaving a subscription
This is a temporary fix, and first part of the gall-request-queue-fix
release in two stages. This gives a publisher ship the ability to
understand a %cork and handle it properly, but no subscriber will
be sending %corks at this stage when leaving a subscription.

We still add a nonce to all subscription wires but it doesn't
increment it when resubscribing, allowing flows to be reused.

Tested locally with toy pub/sub agents and Group join/leaving
2022-07-06 10:59:08 +02:00
yosoyubik
76919ce07c ames: resend %cork after a naxplanation in one day 2022-07-06 10:52:19 +02:00
yosoyubik
850de0bfd3 Revert "gall: run +ap-kill-down on +molt"
This reverts commit 2107240962.
2022-07-06 09:12:30 +02:00
yosoyubik
675cf45171 Revert "gall: run +ap-kill-down only once"
This reverts commit cb5893ac05.
2022-07-06 09:12:10 +02:00
yosoyubik
3560f6b7e3 Revert "gall: fix condition to run +ap-kill-down"
This reverts commit e5c86886e4.
2022-07-06 09:11:22 +02:00
Joe Bryan
7dce9aede3 vere: check exit code before upgrade/prepare-for, print failure msg 2022-07-05 23:13:20 -04:00
Joe Bryan
0e2880169d vere: set exit code globally on fatal error 2022-07-05 23:09:49 -04:00
Joe Bryan
9cf153f1b6 vere: fix ctrl-c during replay 2022-07-05 23:08:59 -04:00
Joe Bryan
e6005b0734 vere: skip disk cleanup if commit thread cannot be canceled 2022-07-05 23:08:26 -04:00
Joe Bryan
f9e4822026
Merge pull request #5880 from midlyx-hatrys/compdb
vere: build: add ability to create compdb (for Clangd etc.)
2022-07-05 22:42:19 -04:00
Joe Bryan
279a7f18db Merge branch 'master' into next/vere
* master: (61 commits)
  rich-text: removing broken plugin, reverting react-md to 5.0.3 for compat
  graphcontent: blockquotes now correctly break paragraphs off
  md-editor: fixing background in darkmode
  landscape: [skip actions] update glob (0v5.kgrq2.gp725.bo5bk.dmr7d.h41qk)
  ops: fixing build
  meta: version bump for new changes from next/landscape
  meta: package bump:
  eventsource: prevent resetting event id counter
  interface: fixing react-codemirror2 dep
  groups: add webp to list of image types to check links for in chat
  groups: fix issue where URL would be shown along with image in chat
  groups: fix issue with chanel perms caused by use of Set()
  groups: update glob (0v4.2se6m.fvv67.nn5e8.vfrv9.mmi88)[skip actions]
  groups: updating package lock
  groups: updating nvmrc
  Fix webpack, build dependency issues
  compat: fixing react-codemirror2 deps
  compat: updating to latest sigil-js for react
  compat: updating indigo, and removing unused deps
  meta: fixing react version issue
  ...
2022-07-05 22:41:53 -04:00
Midlyx Hatrys
85eaefd82a vere: build: add ability to create compdb (for Clangd etc.)
Running "make compile_commands.json" after configuring does the
needful.
2022-07-05 21:03:46 +03:00
fang
6eece773ba
Merge pull request #5857 from urbit/jb/behn-fix1
behn: fix timers not firing
2022-07-05 16:00:31 +02:00
yosoyubik
ea4a31558f ames: ack last fragment from closing bone 2022-07-01 09:59:24 +02:00
Philip Monk
89b9977ac8 azimuth: fetch snapshot on boot
Previously, the initial Azimuth snapshot was stored in Clay and shipped
in the pill.  This causes several problems:

- It bloats the pill
- Updating the snapshot added large blobs to Clay's state.  Even now
  that tombstoning is possible, you don't want to have to do that
  regularly.
- As a result, the snapshot was never updated.
- Even if you did tombstone those files, it could only be updated as
  often as the pill
- And those updates would be sent over the network to people who didn't
  need them

This moves the snapshot out of the pill and refactors Azimuth's
initialization process.  On boot, when app/azimuth starts up, it first
downloads a snapshot from bootstrap.urbit.org and uses that to
initialize its state.  As before, updates after this initial snapshot
come from an Ethereum node directly and are verified locally.

Relevant commands are:

- `-azimuth-snap-state %filename` creates a snapshot file
- `-azimuth-load "url"` downloads and inits from a snapshot, with url
  defaulting to https://bootstrap.urbit.org/mainnet.azimuth-snapshot
- `:azimuth &azimuth-poke-data %load snap-state` takes a snap-state any
  way you have it

Note the snapshot is downloaded from the same place as the pill, so this
doesn't introduce additional trust beyond what was already required.
When remote scry is released, we should consider allowing downloading
the snapshot in that way.
2022-06-30 23:22:50 -07:00