-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The shield is not checked in cool builds #205
Comments
This might have been found sooner if we had better coverage checks. See #139 . |
Functions like ShieldLower start like this Lines 561 to 566 in 179341b
but could be changed to start like this:
which introduces a very slight inconvenience in, e.g. Line 197 in 179341b
which will need to say:
etc. Shield functions taking an arena is a minor inconsistency that has bitten us. |
…act check by better accounting. Fixes job004026 <https://www.ravenbrook.com/project/mps/issue/?action=job&job=job004026>. Mitigating GitHub issue #205 <#205> with extra shield type checks.
Change d82da0e refactored the shield into its own structure, ShieldStruct, which makes sense in terms of abstractions. Various checks that were part of GlobalCheck were moved to the new ShieldCheck and shield checking was then done in the usual way by a CHECKD . The trouble with this change is that ShieldCheck is never reached in normal builds.
There are several problems:
With several possible solutions:
On this last point, a build with
make -f lii6ll.gmk VARIETY=cool CFLAGSDEBUG='-O0 -g3 -DCHECKLEVEL=CheckLevelDEEP' testci
currently fails in several tests.This issue was discovered during a walkthrough of e47bc4c04 with @rptb1 and @thejayps .
A similar problem may apply to HistoryStruct introduced by 811d535 and possibly others.
The text was updated successfully, but these errors were encountered: