Page MenuHomePhabricator

[lldb] Move once_flags in HostInfoLinux so the internal state struct

Authored by teemperor on Thu, Jun 10, 11:41 PM.



The HostInfoLinuxFields struct is supposed to be set up/torn down on Initialize/Terminate
and should contain all the state of the plugin. once_flags are part of this state and should
also be reset on Terminate so we can re-initialize these lazy values after the next
Initialize call.

This itself is NFC as the HostInfoLinux was broken before this patch and is still broken
afterwards. D104091 will be the proper fix.

Diff Detail

Event Timeline

teemperor created this revision.Thu, Jun 10, 11:41 PM
teemperor requested review of this revision.Thu, Jun 10, 11:41 PM
vitalybuka added inline comments.Thu, Jun 10, 11:47 PM

this still does not solve memory leak if HostInfoLinux::Initialize called twice

vitalybuka accepted this revision.Thu, Jun 10, 11:50 PM

I see comment on the D104091

This revision is now accepted and ready to land.Thu, Jun 10, 11:50 PM
This revision was landed with ongoing or failed builds.Thu, Jun 10, 11:54 PM
This revision was automatically updated to reflect the committed changes.