Commit Graph

660 Commits

Author SHA1 Message Date
Joe Bryan
54bc2c54a5 Merge branch 'master' into cc-release
* master: (50 commits)
  stop snprintfing from a string into itself
  pin arvo version number
  bumped urbit version number
  saves a checkpoint during replay, every 100K events or on failure
  simplifies loom init and checkpoint restore
  - Adds tracing during playback - stop snprintf-ing from one string into another, which is undefined behavior
  reclaim memory every 1k events in live operation or replay
  splits log files between arvo events
  name trace files by urbit date
  automatically split json trace outputs at 100000 line intervals
  stick |mass outputs in mass subdirectory of put
  adds comment about %funk hook in +ut
  adds sha-256 battery hashes to the jet dashboard, corrects axes
  [CI] disables deployment of tagged builds
  removes unused fprintf arg
  [CI] updates pinned arvo commit
  bumps urbit patch number to 0.7.1
  removes obsolete, commented-out gc implementation from loop.c
  moves all vere gc to _raft_grab(), run once after event
  Move _XOPEN_SOURCE #define to include/c/portable.h
  ...
2019-02-06 20:52:44 -05:00
Joe Bryan
a618211594
Merge pull request #1183 from urbit/simpler-checkpoint
simplifies loom init/restore, checkpoints during replay
2019-02-04 19:16:46 -05:00
Joe Bryan
47c7339db2 simplifies loom init and checkpoint restore 2019-02-04 18:23:01 -05:00
Isaac Visintainer
ea6f2fd87b splits log files between arvo events 2019-02-01 17:00:22 -08:00
Isaac Visintainer
323c453404 automatically split json trace outputs at 100000 line intervals 2019-01-31 22:31:20 -08:00
Joe Bryan
77947eda40
Merge pull request #1161 from fche/patch-1
vere/unix.c: set _XOPEN_SOURCE
2019-01-30 19:16:37 -05:00
Frank Ch. Eigler
a09477f2fe Move _XOPEN_SOURCE #define to include/c/portable.h
Since it now contains a glibc feature macro, it needs to be included
ahead of normal glibc headers, so vere/unix.c now starts with #include
"all.h".
2019-01-30 15:26:02 -05:00
Joe Bryan
2b8a7392ad refactors u3m_reclaim, plugging memory leaks 2019-01-29 23:11:55 -05:00
Joe Bryan
ffdc465085 adds u3m_reclaim to clear persistent caches in vere 2019-01-29 22:35:47 -05:00
Joe Bryan
1087de003f
Merge pull request #1171 from urbit/massmark
fixes |mass
2019-01-29 22:34:32 -05:00
Joe Bryan
98590cccb5 adds -Dmemory-log=true build option to save |mass output to a file 2019-01-29 22:13:31 -05:00
Joe Bryan
7ce31c1a59 threads output file pointer through memory marking and printing 2019-01-29 21:56:35 -05:00
Joe Bryan
b995984909 adds comment explaining u3a_minimum 2019-01-29 17:49:41 -05:00
Joe Bryan
de8abeac69 refactors libnoun memory marking, adds optional printfs 2019-01-29 17:20:31 -05:00
Ted Blackman
56049e2246 @joemfb review comments 2019-01-29 00:05:23 -08:00
Joe Bryan
8bf02a857a Merge branch 'master' into cc-release-rc-merge
* master: (99 commits)
  updates contact instructions
  erased some lines in raft
  updates libent submodule
  cleans up event error handling in _raft_lame
  Remove includes introduced for getentropy
  Use libent for getentropy
  Fix link in README
  remove old version of u3r_mug()
  renames test-hash
  removes temporary u3r_mug tests
  adds assertions to protect u3r_mug against stack overflow
  adds a u3_none explicit bottom stack frame to u3r_mug
  WIP simplified conditionals, still dies, appears stateful?
  WIP refactored but still dying
  WIP still dying
  WIP testing and printing
  WIP compiles but crashes
  updates CONTRIBUTING.md, removing obsolete instructions
  exit cleanly if $galaxy is already running (fake or real)
  corrects usage instructions
  ...
2019-01-17 22:05:19 -05:00
Jōshin
680fe91953 Remove includes introduced for getentropy 2019-01-16 09:14:11 -08:00
Jōshin
30b616dd8b Use libent for getentropy 2019-01-16 09:06:12 -08:00
Ted Blackman
0ad64600a2
Merge pull request #1135 from urbit/comet-stars
Download star list to boot comet
2019-01-11 18:31:41 -08:00
Ted Blackman
c2ebf77ae2 Fix u3_dawn_come() call signature and call sites 2019-01-11 17:53:07 -08:00
Philip Monk
059b13f30e
provide default for -e 2019-01-11 17:31:30 -08:00
Joe Bryan
0ee959b9e7
Merge pull request #1122 from mrdomino/c3-getentropy
c3_rand cleanup
2019-01-11 13:17:04 -05:00
Ted Blackman
7be1073007
Merge pull request #1130 from urbit/snapdown
Download ethereum snapshot from URL
2019-01-11 08:27:16 -08:00
Ted Blackman
4ea8492319 -m eth snap url, -C raw eth chain 2019-01-11 08:07:26 -08:00
Joe Bryan
4c92b65d1f refactors u3_ward/u3_warc lifecycle, preventing potential leaks 2019-01-10 13:44:46 -05:00
Joe Bryan
46da7e6739 backports u3r_chubs from cc-release 2019-01-10 13:15:01 -05:00
Jōshin
e253be75cc Consistent indentation in portable.h
Also remove the gcc/C99 comment.
2019-01-09 09:15:41 -08:00
Jōshin
a8c19d9bae c3_rand cleanup
This should work on Linux since kernel 3.17, OS X since 10.12, OpenBSD
since 5.6, and FreeBSD since 12.0. It also introduces no external
dependencies. Note that getentropy should only be called with at most
256 bytes or it will return EIO. The getrandom variant on Linux doesn't
check for this. If called with len > 256, it's allowed to produce a
short read if it gets interrupted. This should show up as an error, so
everything's fine.
2019-01-09 09:15:41 -08:00
Joe Bryan
8807423b01 refactors u3r_mug* and some call sites 2019-01-08 22:45:02 -05:00
Joe Bryan
93bc0c7a97 removes aliases for +hor and +vor 2019-01-08 22:40:13 -05:00
Joe Bryan
658a77f88b Revert "adds staged jet headers and dashboard declarations, renames everything"
This reverts commit cee1bfe591.
2019-01-08 22:31:24 -05:00
Joe Bryan
1a40bc70b9 Revert "adds temporary gum_w hash slot to u3_noun"
This reverts commit cd96ad658d.
2019-01-08 22:31:24 -05:00
Joe Bryan
b3fad746ca Revert "jets u3r_mur"
This reverts commit b0ef096e1c99b7ba06fd8f9717da0a409551ea00.
2019-01-08 22:31:24 -05:00
Joe Bryan
b33f6e4b42 renames *_vor to *_mor 2019-01-08 22:31:19 -05:00
Joe Bryan
8fe90875cd replaces calls to u3qc_hor with u3qc_gor 2019-01-08 20:14:55 -05:00
Joe Bryan
bad60672e4 removes +hor jet, sets *_hor to point to *_gor 2019-01-08 18:15:39 -05:00
Joe Bryan
1d1a259f31 removes old u3r_mug*, switches u3r_mur* to u3r_mug* 2019-01-08 18:13:25 -05:00
Joe Bryan
ce7eb6ffcb sets u3qc__stage_hor to point to u3qc__stage_gor 2019-01-08 18:07:05 -05:00
Joe Bryan
aa3566a642 sets u3r__stage_mug to point to u3r_mur 2019-01-07 23:31:37 -05:00
Joe Bryan
e179667323 jets u3r_mur 2019-01-07 23:31:37 -05:00
Joe Bryan
cd96ad658d adds temporary gum_w hash slot to u3_noun 2019-01-07 23:31:37 -05:00
Joe Bryan
cee1bfe591 adds staged jet headers and dashboard declarations, renames everything 2019-01-07 23:31:37 -05:00
Joe Bryan
f0fdfe118f uncomments/fixes/finishes u3r_mur* functions 2019-01-07 21:57:48 -05:00
Jōshin
67c0b7b39b Clean up allocator defs
- Condense the allocator section in defs.h and make it match the
  surrounding style.

- Use real calloc in c3_calloc. Some guy on the internet says
  calloc can be faster than malloc since the OS may not actually
  need to call memset.

- Replace calloc calls in vere code with c3_calloc.

Note that I left the c3_calloc definition as-is (i.e., not taking
a count argument). I was going to change it, but it seems like
count is 1 at all call sites. If it's ever used with count != 1,
I'd be in support of changing it, fwiw.
2019-01-02 11:23:06 -08:00
Joe Bryan
3137fc3b87 builds urbit-worker separately from urbit 2018-12-17 13:38:12 -05:00
Joe Bryan
042b55326f Merge branch 'release-candidate' into cc-release-rc-merge
* release-candidate: (90 commits)
  Only bail if profiling is enabled
  Fixes the build on OpenBSD
  don't abort on bail:fail, but continue with crash handling
  renames event-timing, adds build option to enable
  Add jet for +del:in
  prevents profiling on *bsd
  removes preprocessor errors in trace.c on openbsd
  updates secp256k1 to include /usr/local/include for openbsd
  Style nits
  [CI] Update arvo
  Add a jet for +del:by
  fit UTF-8 tape bug
  calls u3_raft_work on leader promotion (for eager restart effects)
  enables event-log encryption
  removes unused u3v_nick (effect traversal) and u3v_http_request
  refactors event replay, removing unnecessary effect traversal
  refactors event poke, removing unnecessary effect traversal
  trailing whitespace
  adds and corrects some raft comments
  separates effects and persistence
  ...
2018-12-17 11:28:24 -05:00
Jōshin
69f4157588 Fixes the build on OpenBSD
Tested with stock clang on an OpenBSD 6.4 amd64 VM. Unfortunately
clang (and also gcc from ports) was not pleased about c3_rand,
whereas this was fine before. I have no idea what changed, but it
works now.
2018-12-14 22:51:02 +00:00
Joe Bryan
7a172f6860 renames event-timing, adds build option to enable 2018-12-13 20:03:19 -05:00
Elliot Glaysher
e25c8388a4 Add jet for +del:in 2018-12-13 14:39:53 -08:00
Elliot Glaysher
aea2139261 Add a jet for +del:by 2018-12-13 11:04:31 -08:00