Commit Graph

238 Commits

Author SHA1 Message Date
vyzo
09ad519687 nil data when the scope is done 2022-01-17 12:33:01 +02:00
vyzo
25825bc4f5 add comment for the distinction between DAG and txn scopes 2022-01-17 12:33:01 +02:00
vyzo
1ce37234b7 fix test 2022-01-17 12:33:01 +02:00
vyzo
03426ed4bd more robust handling of transactions
Neuter the invalidation footgun if the owner is Done while there are open transactions scopes.
2022-01-17 12:33:01 +02:00
vyzo
4bcd05997d simplify stream/conn direction management 2022-01-17 12:33:01 +02:00
vyzo
0d73447ea4 add resources test 2022-01-17 12:33:01 +02:00
vyzo
4f7d23aa6f implement buffers 2022-01-17 12:33:01 +02:00
vyzo
79d15fa18c consolidate Rerve/ReleaseForChild in aggregate method 2022-01-17 12:33:01 +02:00
vyzo
6427759aab some cleanup for rcmgr scopes 2022-01-17 12:33:01 +02:00
vyzo
f31f87221b static limits 2022-01-17 12:33:01 +02:00
vyzo
62105f3a71 consistent ref counting 2022-01-17 12:33:01 +02:00
vyzo
efe5e36d58 update implementation for interface changes 2022-01-17 12:33:01 +02:00
vyzo
76fd5b0e8f more descriptive invalid buffer error in Grow 2022-01-17 12:33:01 +02:00
vyzo
35f25a934f add missing done checks in ForChild methods 2022-01-17 12:33:01 +02:00
vyzo
a42700a439 make connection/stream Done idempotent 2022-01-17 12:33:01 +02:00
vyzo
0b5b506b8c move ref counting to resource scopes 2022-01-17 12:33:01 +02:00
vyzo
71b70cd48b implement scope viewers 2022-01-17 12:33:01 +02:00
vyzo
3422b8cbde add ResourceManager constructor and peer/protocol scope gc 2022-01-17 12:33:01 +02:00
vyzo
cff880ac60 flesh out resource manager 2022-01-17 12:33:01 +02:00
vyzo
431ca69df7 update scope stat definition 2022-01-17 12:33:01 +02:00
vyzo
c46de4165c only allocate buffer map if the application requests a buffer, sanity check returns 2022-01-17 12:33:01 +02:00
vyzo
b85397384b only count fds if the connection actually uses an fd 2022-01-17 12:33:01 +02:00
vyzo
e07aba016b stream service cannot be set before peer 2022-01-17 12:33:01 +02:00
vyzo
39e351882b fix brainfart 2022-01-17 12:33:01 +02:00
vyzo
0ca5ac15d9 flesh out concrete scopes 2022-01-17 12:33:01 +02:00
vyzo
01e64d31ec embed mutex in scope impl, add constructors 2022-01-17 12:33:01 +02:00
vyzo
3bffbe8521 release buffer map at done 2022-01-17 12:33:01 +02:00
vyzo
5cd5b94572 fix comment typo 2022-01-17 12:33:01 +02:00
vyzo
69d5e0d8e7 rename BasicResourceScope to Resources 2022-01-17 12:33:01 +02:00
vyzo
17a30366ae refactor scopes, introduce constrained scopes 2022-01-17 12:33:01 +02:00
vyzo
004a6948b2 add nil receiver safety to basic resource scopes 2022-01-17 12:33:01 +02:00
vyzo
61d2f1c8ce sanity check ReleaseMemory as well 2022-01-17 12:33:01 +02:00
vyzo
56da0ac34f add helper method to release all buffers 2022-01-17 12:33:01 +02:00
vyzo
068e8629f0 improve memory checking, adjust GrowBuffer signatures 2022-01-17 12:33:01 +02:00
vyzo
5b12ade22d basic resource scopes 2022-01-17 12:33:01 +02:00
vyzo
d5c1ca632b go mod 2022-01-17 12:32:43 +02:00
web3-bot
d12c9edfc0
sync: update CI config files (#2)
* add .github/workflows/automerge.yml

* add .github/workflows/go-test.yml

* add .github/workflows/go-check.yml

* add .github/workflows/releaser.yml

* add .github/workflows/release-check.yml

* add .github/workflows/tagpush.yml

Co-authored-by: web3-bot <web3-bot@users.noreply.github.com>
2021-12-28 03:24:05 -08:00
vyzo
1a296c6f05
Initial commit 2021-12-22 11:10:41 +02:00