-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Linux] C++ version of autoptr for glib objects #28304
Conversation
PR #28304: Size comparison from 7ab043c to c0e63f3 Decreases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
PR #28304: Size comparison from 7ab043c to 5b14884 Increases (5 builds for bl702, linux, nrfconnect)
Decreases (5 builds for bl602, bl702l, linux, qpg)
Full report (14 builds for bl602, bl702, bl702l, cc32xx, linux, mbed, nrfconnect, qpg)
|
PR #28304: Size comparison from 7ab043c to 96fdb32 Increases (10 builds for cyw30739, esp32, linux, nrfconnect, psoc6, telink)
Decreases (18 builds for bl602, bl702, bl702l, efr32, linux, psoc6, telink)
Full report (49 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
PR #28304: Size comparison from 7ab043c to 12a4fc9 Increases above 0.2%:
Increases (59 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
Decreases (15 builds for linux, nrfconnect, psoc6, telink)
Full report (60 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
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.
Please figure out the right placement and naming for the deleter heading.
I don't think support is the right place as this is glib-specific and not generic enough.
PR #28304: Size comparison from 2a681e3 to 717f724 Increases (23 builds for bl702l, cc32xx, esp32, k32w, linux, psoc6, telink)
Decreases (21 builds for bl602, bl702, efr32, linux, telink)
Full report (60 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
* Remove CHIPOBLE ifdefs in files included by GN * Pass arguments as const if possible * Fix typo in enum name * Get rid of excessive casting * Fix memory leak on new CHIP device scanned * Free memory returned by g_variant_lookup_value * Move glib deleter helpers to lib/support * Define GAutoPtr for glib objects memory management * Build break fix * Fix build break without WPA * Add missing include * Move GLibTypeDeleter.h to src/platform
* Remove CHIPOBLE ifdefs in files included by GN * Pass arguments as const if possible * Fix typo in enum name * Get rid of excessive casting * Fix memory leak on new CHIP device scanned * Free memory returned by g_variant_lookup_value * Move glib deleter helpers to lib/support * Define GAutoPtr for glib objects memory management * Build break fix * Fix build break without WPA * Add missing include * Move GLibTypeDeleter.h to src/platform
Problem
Changes
GAutoPtr<>
template which acts asg_autoptr
(as a global helper include file)const
if possible and get rid of excessive castingBluezDevice1 * device
has been converted to references in order to get rid of runtimenullptr
checks#if ...CHIPOBLE
guards in files added to compilation by GNThere are going to be follow-up PRs which will replace glib explicit memory management with
GAutoPtr<>
.Testing
CI will test for potential build breaks.
Commissioning tested with valgrind: