Matthew LeVan
3573e90b91
pma: restore btree.c
2024-02-21 10:12:27 -05:00
Matthew LeVan
e03d340add
guard: use guard_err
in rust constants
2024-02-21 10:09:04 -05:00
Matthew LeVan
66166264d2
Revert "Merge branch 'as/serf-guard' into msl/guard"
...
This reverts commit dd2bbc5ae2
, reversing
changes made to d13fe50c72
.
2024-02-21 10:06:18 -05:00
Matthew LeVan
dd2bbc5ae2
Merge branch 'as/serf-guard' into msl/guard
2024-02-20 11:17:21 -05:00
Matthew LeVan
d13fe50c72
guard: partially address @ashelkovnykov's comments
2024-02-20 02:53:14 -05:00
Matthew LeVan
7586c9e6c0
guard: use GD_SIGNAL
2024-02-19 21:02:20 -05:00
Alex Shelkovnykov
c40b4ede7f
guard: fix return types as u32
2024-02-20 08:50:17 +08:00
Alex Shelkovnykov
2d0139ff13
guard: remove unnecessary debug checks
2024-02-20 08:47:44 +08:00
Alex Shelkovnykov
00e354e2b4
alloc: remove default feature settings
2024-02-20 08:26:33 +08:00
Alex Shelkovnykov
18882fae34
guard: add codepath for OSx
2024-02-20 08:25:43 +08:00
Matthew LeVan
b1e3b788b1
guard: remove unhelpful functions
2024-02-19 18:47:00 -05:00
Alex Shelkovnykov
0c249ab9a4
guard: struct style
2024-02-20 07:43:46 +08:00
Matthew LeVan
85fef33fcb
guard: use guard_success
instead of 0
2024-02-19 16:02:47 -05:00
Matthew LeVan
96e0777b6b
guard: placate clang warnings
2024-02-19 13:47:39 -05:00
Matthew LeVan
5dcc2402ea
guard: use state struct
2024-02-19 13:26:21 -05:00
Matthew LeVan
6479459204
Merge branch 'as/serf-guard' into msl/guard
2024-02-19 13:11:19 -05:00
Matthew LeVan
b1960ad1f6
guard: works on macOS
2024-02-19 12:54:43 -05:00
Matthew LeVan
45f47e069f
wip: initial working on macOS
2024-02-17 17:27:13 -08:00
Alex Shelkovnykov
2659c5bd32
guard: reorder guard page swap
2024-02-17 22:03:49 +09:00
Alex Shelkovnykov
50b2492e8b
guard: pass global state in C idiomatic manner
2024-02-17 22:03:49 +09:00
Alex Shelkovnykov
3f59695cd9
guard: remove unnecessary helpers
2024-02-17 22:03:49 +09:00
Alex Shelkovnykov
902b25334b
guard: replace check with assertion
2024-02-17 22:03:49 +09:00
Alex Shelkovnykov
9c35bda302
guard: clean up debugging console messages
2024-02-17 22:03:39 +09:00
Alex Shelkovnykov
756145b17c
guard: remove stale comments
2024-02-17 21:16:58 +09:00
Matthew LeVan
f12337e620
build: turn off disable_release
default feature for rust-assert-no-alloc
2024-02-16 13:56:43 -05:00
Matthew LeVan
840204391f
cargo: clippy
2024-02-16 13:45:03 -05:00
Matthew LeVan
446efcd8d8
guard: touchups
2024-02-16 13:35:56 -05:00
Matthew LeVan
4cfd3ca1e7
guard: comment debug fprintf
calls
2024-02-16 13:32:11 -05:00
Matthew LeVan
b81ae6e406
guard: documentation
2024-02-16 13:23:17 -05:00
Matthew LeVan
77ec530c7c
Revert "wip: test interpret_with_guard
"
...
This reverts commit fcb1ba51da
.
2024-02-15 14:32:37 -05:00
Matthew LeVan
8bcbf6adca
Revert "wip: use only one jmp_buf
; add NockStackSnapshot
"
...
This reverts commit 1980ca7fd6
.
2024-02-15 14:32:17 -05:00
Matthew LeVan
1980ca7fd6
wip: use only one jmp_buf
; add NockStackSnapshot
2024-02-14 17:05:33 -05:00
Matthew LeVan
fcb1ba51da
wip: test interpret_with_guard
2024-02-14 10:51:13 -08:00
Alex Shelkovnykov
5efbc074e2
Enable guard page + bail:meme with stack traces
2024-02-14 19:06:04 +09:00
Alex Shelkovnykov
1df75a2cab
Merge branch 'as/serf-guard' into msl/guard
...
- manual
- compiles
- tests fail
- doesn't run
2024-02-14 12:50:37 +09:00
Alex Shelkovnykov
42ffde2208
gaurd: initial guard page commit
2024-02-10 15:04:06 +09:00
Alex Shelkovnykov
7f5d8b57e1
jets: replace manual bail:exit call
2024-02-10 02:28:39 +09:00
Alex Shelkovnykov
852f033d4e
pma: remove invisible characters from code
2024-02-10 02:28:34 +09:00
Alex Shelkovnykov
db635327db
build: toml bikeshedding
2024-02-10 02:28:26 +09:00
Alex Shelkovnykov
6aab4f089d
stack: remove stack / alloc pointer collision checks
2024-02-10 02:28:19 +09:00
~martyr-binbex
368f8584b3
fix up
2024-02-08 17:21:47 -06:00
~martyr-binbex
d8e879636d
remove cargo-watch for darwin-x86 because it doesn't build
2024-02-08 17:07:27 -06:00
Edward Amsden
077af357ae
Merge branch 'eamsden/fix-nix' into as/motes
2024-02-08 10:06:34 -06:00
Edward Amsden
51463f486b
Merge branch 'status' into eamsden/fix-nix
2024-02-08 09:51:29 -06:00
Edward Amsden
ebc79371c8
nix: remove glibc.static package that interferes with builds
2024-02-08 09:50:07 -06:00
Alex Shelkovnykov
a1686c3851
Merge branch 'status' into motes
2024-02-08 14:10:04 +09:00
Edward Amsden
b39bebb54d
Merge pull request #208 from urbit/as/debug
...
stack: add debug helper functions to NockStack
2024-02-07 21:01:56 -06:00
Matthew LeVan
e6890a3c74
cargo: clippy
2024-02-07 10:46:13 -05:00
Alex Shelkovnykov
1364836b20
style: clippy
2024-02-07 23:29:07 +09:00
Alex Shelkovnykov
3406124a53
style: cargo fmt
2024-02-07 23:26:04 +09:00
Alex Shelkovnykov
88757cb040
Merge branch 'status' into crypto
2024-02-07 23:25:10 +09:00
Alex Shelkovnykov
593e386bc4
sha: various fixes
...
- make variable names consistent w/ their Hoon counterparts
- fix slice copy bugs
- add tests for cases that weren't caught until live testing
- btree.c change to boot w/ slim.pill
2024-02-07 22:56:38 +09:00
Alex Shelkovnykov
e02a232f2c
style: same as prev commit
2024-02-02 21:24:38 -06:00
Alex Shelkovnykov
2a040b565b
style: fix cargo fmt complaints
2024-02-02 21:22:35 -06:00
Alex Shelkovnykov
a5379458cc
stack: add debug helper functions to NockStack
2024-02-03 10:54:45 +09:00
barter-simsum
6561c300b5
pma: flist insert bugfix
2024-02-02 20:53:21 -05:00
barter-simsum
e12d6c8fef
pma: fix file growth infinite loop
2024-02-02 20:53:21 -05:00
Matthew LeVan
dc657deb0b
lock: use sha1
pattern for shal
2024-02-02 10:44:29 -05:00
Matthew LeVan
dc4cb73f9e
noun: fix new_raw_mut_bytearray
bitshift direction
2024-02-02 10:01:43 -05:00
Alex Shelkovnykov
2bcf8e29a1
Merge branch 'status' into motes
2024-02-01 23:29:27 +09:00
Matthew LeVan
c0ca1813a8
ares_crypto
: fix typo
2024-02-01 09:23:30 -05:00
Matthew LeVan
0f749965e1
ares_crypto
: remove cruft
2024-02-01 09:17:30 -05:00
Alex Shelkovnykov
ab9ac5662f
Merge branch 'status' into parse
2024-01-31 19:43:31 +09:00
Alex Shelkovnykov
5a8286e17e
jets: fix imports and nits
2024-01-31 19:23:39 +09:00
Alex Shelkovnykov
d0693218a1
interpreter: fix minor bug
...
unwrap_or is eagerly evaluated; we want unwrap_or_else which is lazily
evaluated.
2024-01-31 17:11:33 +09:00
Alex Shelkovnykov
190e926903
stack: do not modify pointers unless a valid allocation is possible
2024-01-31 17:11:33 +09:00
Alex Shelkovnykov
30ccf384e0
interpreter: add error motes
2024-01-31 17:11:31 +09:00
Alex Shelkovnykov
af1b00bc9c
stack: check for stack overflow
2024-01-31 17:10:01 +09:00
Edward Amsden
8e45025228
Merge pull request #190 from urbit/eamsden/jet-turn
...
jets: jet +turn
2024-01-22 13:21:15 -06:00
Matthew LeVan
d4e0d983de
pma: declare _bt_falloc
iterator variables before start
label
2024-01-18 10:00:54 -05:00
Matthew LeVan
d1e8ef632d
Merge branch 'status' into msl/ares-crypto
2024-01-18 08:42:29 -05:00
Matthew LeVan
c4c1388573
noun: remove IndirectAtom::as_mut_bytes
2024-01-17 20:46:45 -05:00
Edward Amsden
2706cb5834
jets: format
2024-01-17 19:37:19 -06:00
Edward Amsden
b884cb3130
jets: add safety check to jet cache in jet_turn
2024-01-17 18:54:39 -06:00
Edward Amsden
98b6b67cdc
Merge branch 'status' into eamsden/jet-turn
2024-01-17 18:34:27 -06:00
Edward Amsden
5336ca7a91
Merge pull request #201 from urbit/barter-simsum/file-extension
...
PMA file extension
2024-01-17 17:39:10 -06:00
barter-simsum
85a878a85c
pma: remove comments referring to the persistent file's "frontier"
2024-01-17 18:07:56 -05:00
Philip Quirk
25239fd475
don't fsync on every nock event while tracing
2024-01-16 12:04:42 -06:00
barter-simsum
390c1c3356
pma: file extension bug fixes. test changes
...
file extension seems to be working now after reordering freelist restoration and
calling _bt_falloc in _nlist_new to create the first partition
should be able to move on to partition striping now and the explicit call to
_bt_falloc will make this easier
2024-01-12 20:02:59 -05:00
barter-simsum
a604f19d74
pma: nlist creation depends on flist existence
...
reordered to handle this dependency. Still debugging an issue with _flist_grow
The dependency is natural and will be required to implement partition
striping. All node partitions should call falloc and be represented in the flist
2024-01-12 19:41:19 -05:00
barter-simsum
aaa6f5e2ff
pma: persistent file growth highpg tracking attempted fix
...
spent a while debugging this, but there are still issues on restoration. We
cannot simply call _flist_new and _flist_record_alloc on persistent state
restoration since _flist_new won't properly set the highpg. If restoring, we
should derive the high flist page (alloced or not) from state->file_size_p. I
think I way overcomplicated this
2024-01-12 18:11:42 -05:00
barter-simsum
6a08d08c0f
pma: file resize test in btest.c and fixes to resize logic
2024-01-11 18:26:33 -05:00
barter-simsum
f6213bd1ce
pma: minor cleanup
2024-01-10 19:15:34 -05:00
barter-simsum
aa21d14739
pma: remove frontier and only rely on state->file_size_p
2024-01-10 18:49:55 -05:00
barter-simsum
19fd0e4fb4
pma: file extension - to be revised
2024-01-10 18:27:31 -05:00
Matthew LeVan
718842a49a
build: remove test_vs_urcrypt
as default feature
2024-01-10 11:52:03 -05:00
Matthew LeVan
1a323204e3
jets: add comment explaining length matching
2024-01-08 18:18:04 -05:00
Matthew LeVan
824e6cf7e9
jets: handle zero-length messages in ed
2024-01-08 18:11:25 -05:00
Matthew LeVan
723372a0ea
jets: handle zero-length messages in aes_siv
2024-01-08 17:39:11 -05:00
Matthew LeVan
528270bbd4
jets: handle zero-length messages in sha
2024-01-08 17:23:25 -05:00
Matthew LeVan
5b0b389775
jets: rip out as_mut_bytes
2024-01-08 17:01:37 -05:00
Edward Amsden
0f9175ada6
devex: add static glibc to flake.nix
2023-12-27 08:03:42 -06:00
Matthew LeVan
95f36e00dd
cargo: format
2023-12-21 15:19:44 -05:00
Matthew LeVan
315f78824f
cargo: appease clippy
2023-12-21 15:00:06 -05:00
Matthew LeVan
7f87000711
cargo: appease clippy
2023-12-21 14:57:38 -05:00
Matthew LeVan
82d5ebdc52
ares_crypto
: remove decryption tests in aes_siv
; add comments
2023-12-21 14:51:15 -05:00
Matthew LeVan
93a5c87178
ares_crypto
: remove unused imports
2023-12-21 14:35:45 -05:00
Matthew LeVan
769dfca33f
jets: simplify aes_siv
greatly and use random inputs for tests
2023-12-21 14:32:38 -05:00
Matthew LeVan
7155e9909a
jets: use explicitly sized byte arrays in ed
jets
2023-12-21 10:25:28 -05:00
Edward Amsden
0f6c8b4659
noun: add IndirectAtom::new_raw_mut_bytearray to allocate indirect atoms with mutable memory returned as a reference to a fixed-sized byte array.
2023-12-21 07:51:44 -06:00