Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Include wifi.radio singleton in gc #3799

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

Merged
merged 1 commit into from
Dec 7, 2020

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented Dec 7, 2020

The wifi.radio singleton object, which is in static storage, was not included in GC scanning. It does include one Python object.

It could have been added to ROOT_POINTERS, but instead I added a module-specific GC routine, as has been done in, for example, displayio and _bleio for similar static objects.

I hoped this might fix the ESP32-S2 I2C/WiFi hang. It didn't, sadly. But I think this is still necessary, unless my understanding about what needs to be scanned for GC is confused. (I keep having to re-derive this in my head.)

@dhalbert dhalbert requested a review from tannewt December 7, 2020 16:11
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you!

@tannewt tannewt merged commit 7ac2000 into adafruit:main Dec 7, 2020
@dhalbert dhalbert deleted the wifi-radio-gc-collect branch December 8, 2020 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants