Skip to content

Commit e54e07e

Browse files
committed
Generational collector and a faster checker
The heap is written only while an object is built, so minor collections keep the marks of old objects (sticky mark bits) without a write barrier; strings are now built from their end to keep that true. An allocation bit is set only when a slot is handed out. In the checker, lookups stop at their first hit and and/or short-circuit (Lazy.and, Lazy.or): checking bendc.bend with its checker takes 14s, as long as the official checker. CI now compares the two checkers' output on bendc.bend.
1 parent 8ba2a23 commit e54e07e

4 files changed

Lines changed: 10938 additions & 10500 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,11 @@ jobs:
2929
- name: Seed is up to date (bendc.bend compiles to the seed)
3030
run: make selfcheck
3131

32+
- name: bendc's checker accepts bendc itself, as the official one does
33+
run: |
34+
./build/bendc --check-only "$HOME/.bend/bend2/base.bend" bendc.bend > build/ours.txt
35+
BEND_NO_TELEMETRY=1 bend bendc.bend --check-only > build/official.txt
36+
cmp build/ours.txt build/official.txt
37+
3238
- name: Full bootstrap (official bend -> stage1 -> stage2 fixpoint)
3339
run: BEND_NO_TELEMETRY=1 ./bootstrap.sh

0 commit comments

Comments
 (0)