-
Notifications
You must be signed in to change notification settings - Fork 229
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
chore: moddable ac9978f6 2021-03-15 edits #2655
Conversation
Awesome! One very minor suggestion: maybe use conventional commits in the autogenerated commit message and PR title? |
20773ff
to
e2ad8c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have enough context to know what is going into the update, but I'm happy to maintain it if it breaks.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I skimmed the xs/sources/
changes, looks like a bunch of parser/error-reporting changes, and one tidbit in the WeakMap memory-handling that maybe if we're lucky fixes the weird bug we've been seeing. Go for it!
This bit in void fxMarkWeakStuff(txMachine* the, void (*theMarker)(txMachine*, txSlot*))
{
txSlot* slot;
txSlot** address;
address = &the->firstWeakMapTable;
while ((slot = *address)) {
fxMarkWeakMapTable(the, slot, theMarker);
*address = C_NULL;
address = &(slot->value.table.address[slot->value.table.length]);
}
address = &the->firstWeakSetTable; to: void fxMarkWeakStuff(txMachine* the, void (*theMarker)(txMachine*, txSlot*))
{
txSlot* slot;
txSlot** address;
while (the->firstWeakMapTable) {
txSlot* firstWeakMapTable = the->firstWeakMapTable;
the->firstWeakMapTable = C_NULL;
address = &firstWeakMapTable;
while ((slot = *address)) {
fxMarkWeakMapTable(the, slot, theMarker);
*address = C_NULL;
address = &(slot->value.table.address[slot->value.table.length]);
}
}
address = &the->firstWeakSetTable; seems especially relevant. |
e2ad8c1
to
1ef53ae
Compare
semi-auto-generated; see #2648
for reference: