-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
VM: fixes most ran-out-registers problems [backport] #12485
Conversation
A pretty hefty test case that used to run out of registers now shows:
Stack:
|
@zevv can you tell what code failed specifically? |
if c.prc.slots[i].inUse and c.prc.slots[i].kind in {slotTempUnknown, | ||
slotTempInt, | ||
slotTempFloat, | ||
slotTempStr, | ||
slotTempComplex}: | ||
doAssert false, "leaking temporary " & $i & " " & $c.prc.slots[i].kind |
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 am not sure if I like this part. Maybe a normal assert
is better here. Currently koch boot -d:danger
will have this test enabled, even though that is not the desired behavior here.
(cherry picked from commit 801a794)
sorry for the late response, I thought it was caused by my Nim compiler being in some kind of mixed up state, but I now get the same error on devel. I'm having a hard time to isolate the issue, but reproducing is easy. Do a
will give the above error. |
Reduced it down to this snippet:
Reported as a separate issue at #12547 |
No description provided.