Skip to content
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

Darwin: Prohibit static initializers in Matter.framework #34168

Merged
merged 4 commits into from
Jul 4, 2024

Conversation

ksperling-apple
Copy link
Contributor

Globals should either be "constinit" (i.e. use a constrexpr constructor) and trivially destructible, or use the Global<> / AtomicGlobal<> helpers.

Globals should either be "constinit" (i.e. use a constrexpr constructor) and
trivially destructible, or use the Global<> / AtomicGlobal<> helpers.
Copy link

github-actions bot commented Jul 3, 2024

PR #34168: Size comparison from 4ef104b to 5b18d13

Increases above 0.2%:

platform target config section 4ef104b 5b18d13 change % change
bl702 lighting-app bl702 RAM 15161 15265 104 0.7
bl702+mfd RAM 15313 15417 104 0.7
bl702+rpc RAM 24181 24285 104 0.4
bl706-eth RAM 27272 27376 104 0.4
bl706-wifi RAM 14605 14709 104 0.7
bl702l lighting-app bl702l RAM 21732 21836 104 0.5
bl702l+mfd RAM 21892 21996 104 0.5
Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 4ef104b 5b18d13 change % change
bl602 lighting-app bl602 FLASH 1271088 1271026 -62 -0.0
RAM 95328 95328 0 0.0
bl602+mfd FLASH 1285602 1285284 -318 -0.0
RAM 95472 95472 0 0.0
bl602+rpc FLASH 1310304 1309986 -318 -0.0
RAM 103752 103752 0 0.0
bl702 lighting-app bl702 FLASH 1092238 1091924 -314 -0.0
RAM 15161 15265 104 0.7
bl702+mfd FLASH 1102932 1102618 -314 -0.0
RAM 15313 15417 104 0.7
bl702+rpc FLASH 1182048 1181734 -314 -0.0
RAM 24181 24285 104 0.4
bl706-eth FLASH 875328 875196 -132 -0.0
RAM 27272 27376 104 0.4
bl706-wifi FLASH 1127724 1127270 -454 -0.0
RAM 14605 14709 104 0.7
bl702l lighting-app bl702l FLASH 1079124 1078806 -318 -0.0
RAM 21732 21836 104 0.5
bl702l+mfd FLASH 1090386 1090068 -318 -0.0
RAM 21892 21996 104 0.5
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 797344 797220 -124 -0.0
RAM 106636 106636 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816260 816144 -116 -0.0
RAM 116948 116956 8 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 807712 807588 -124 -0.0
RAM 111236 111236 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 760552 760428 -124 -0.0
RAM 105328 105336 8 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 746272 746156 -116 -0.0
RAM 105576 105576 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606186 605862 -324 -0.1
RAM 204508 204508 0 0.0
lock CC3235SF_LAUNCHXL FLASH 651214 650890 -324 -0.0
RAM 204780 204780 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 666345 666225 -120 -0.0
RAM 75100 75100 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 686197 686077 -120 -0.0
RAM 77732 77732 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 686197 686077 -120 -0.0
RAM 77732 77732 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 643133 643013 -120 -0.0
RAM 70168 70168 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 608873 608745 -128 -0.0
RAM 70804 70804 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 628517 628389 -128 -0.0
RAM 73356 73348 -8 -0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 628517 628389 -128 -0.0
RAM 73356 73348 -8 -0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 624401 624273 -128 -0.0
RAM 73820 73820 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 644117 643989 -128 -0.0
RAM 76372 76364 -8 -0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 644117 643989 -128 -0.0
RAM 76372 76364 -8 -0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 592973 592845 -128 -0.0
RAM 67788 67788 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 612825 612689 -136 -0.0
RAM 70420 70428 8 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 612825 612689 -136 -0.0
RAM 70420 70428 8 0.0
efr32 lighting-app BRD4187C FLASH 923444 923344 -100 -0.0
RAM 134996 134984 -12 -0.0
lock-app BRD4338a FLASH 740132 739812 -320 -0.0
RAM 203996 204000 4 0.0
window-app BRD4187C FLASH 1012376 1012048 -328 -0.0
RAM 129632 129620 -12 -0.0
esp32 all-clusters-app c3devkit DRAM 88396 88332 -64 -0.1
FLASH 1468016 1467674 -342 -0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 114868 114868 0 0.0
FLASH 1537007 1536699 -308 -0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4592 4592 0 0.0
FLASH 2530144 2529488 -656 -0.0
RAM 125112 125072 -40 -0.0
all-clusters-app debug unknown 5368 5368 0 0.0
FLASH 5583934 5583070 -864 -0.0
RAM 488152 488144 -8 -0.0
all-clusters-minimal-app debug unknown 5288 5288 0 0.0
FLASH 5053880 5053304 -576 -0.0
RAM 232968 232960 -8 -0.0
bridge-app debug unknown 5256 5256 0 0.0
FLASH 4478360 4477656 -704 -0.0
RAM 212832 212744 -88 -0.0
chip-tool debug unknown 5728 5728 0 0.0
FLASH 11714375 11713767 -608 -0.0
RAM 543394 543386 -8 -0.0
chip-tool-ipv6only arm64 unknown 20032 20008 -24 -0.1
FLASH 10830716 10829996 -720 -0.0
RAM 592368 592216 -152 -0.0
fabric-admin debug unknown 5592 5592 0 0.0
FLASH 10693287 10692711 -576 -0.0
RAM 537458 537418 -40 -0.0
fabric-bridge-app debug unknown 5264 5264 0 0.0
FLASH 4348904 4348200 -704 -0.0
RAM 204960 204872 -88 -0.0
lighting-app debug+rpc+ui unknown 5936 5936 0 0.0
FLASH 5373602 5372898 -704 -0.0
RAM 221640 221600 -40 -0.0
lock-app debug unknown 5192 5192 0 0.0
FLASH 4541944 4541224 -720 -0.0
RAM 200248 200240 -8 -0.0
ota-provider-app debug unknown 4576 4576 0 0.0
FLASH 4197800 4197096 -704 -0.0
RAM 194544 194520 -24 -0.0
ota-requestor-app debug unknown 4512 4512 0 0.0
FLASH 4323160 4322632 -528 -0.0
RAM 199168 199176 8 0.0
shell debug unknown 4112 4112 0 0.0
FLASH 2796957 2796509 -448 -0.0
RAM 150512 150504 -8 -0.0
thermostat-no-ble arm64 unknown 9184 9144 -40 -0.4
FLASH 4168284 4167484 -800 -0.0
RAM 235864 235664 -200 -0.1
tv-app debug unknown 5472 5472 0 0.0
FLASH 5605640 5605176 -464 -0.0
RAM 341800 341760 -40 -0.0
tv-casting-app debug unknown 5096 5096 0 0.0
FLASH 9883886 9883422 -464 -0.0
RAM 400824 400816 -8 -0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1502428 1502292 -136 -0.0
RAM 226656 226640 -16 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 881476 881364 -112 -0.0
RAM 139693 139573 -120 -0.1
nrf7002dk_nrf5340_cpuapp FLASH 951992 951880 -112 -0.0
RAM 138121 138001 -120 -0.1
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 826988 826884 -104 -0.0
RAM 138591 138487 -104 -0.1
nxp contact k32w0+release FLASH 575996 575908 -88 -0.0
RAM 70024 70004 -20 -0.0
k32w1+release FLASH 591232 591136 -96 -0.0
RAM 74056 74056 0 0.0
light k32w0+release FLASH 610120 610008 -112 -0.0
RAM 69500 69480 -20 -0.0
k32w1+release FLASH 674824 674712 -112 -0.0
RAM 82816 82816 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1614140 1613828 -312 -0.0
RAM 207148 207148 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1534908 1534596 -312 -0.0
RAM 204052 204036 -16 -0.0
light cy8ckit_062s2_43012 FLASH 1461404 1461100 -304 -0.0
RAM 197332 197308 -24 -0.0
lock cy8ckit_062s2_43012 FLASH 1463268 1462956 -312 -0.0
RAM 224396 224380 -16 -0.0
qpg lighting-app qpg6105+debug FLASH 651156 651052 -104 -0.0
RAM 104564 104560 -4 -0.0
lock-app qpg6105+debug FLASH 611280 611168 -112 -0.0
RAM 99240 99228 -12 -0.0
stm32 light STM32WB5MM-DK FLASH 472544 472440 -104 -0.0
RAM 141652 141660 8 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 632646 632486 -160 -0.0
RAM 50528 50424 -104 -0.2
all-clusters-app tlsr9118bdk40d FLASH 657414 657232 -182 -0.0
RAM 145872 145760 -112 -0.1
all-clusters-minimal-app tlsr9528a FLASH 777718 777548 -170 -0.0
RAM 110684 110580 -104 -0.1
bridge-app tlsr9258a FLASH 675642 675472 -170 -0.0
RAM 95304 95200 -104 -0.1
contact-sensor-app tlsr9528a_retention FLASH 634230 634070 -160 -0.0
RAM 50572 50468 -104 -0.2
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 720030 719860 -170 -0.0
RAM 77148 77044 -104 -0.1
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 612458 612288 -170 -0.0
RAM 142104 142000 -104 -0.1
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 800244 800074 -170 -0.0
RAM 100508 100404 -104 -0.1
lock-app-dfu tlsr9528a FLASH 665804 665634 -170 -0.0
RAM 69860 69756 -104 -0.1
ota-requestor-app tlsr9258a FLASH 694972 694802 -170 -0.0
RAM 95028 94924 -104 -0.1
pump-app tlsr9518adk80d FLASH 616504 616334 -170 -0.0
RAM 56952 56848 -104 -0.2
pump-controller-app tlsr9518adk80d FLASH 606888 606718 -170 -0.0
RAM 56752 56648 -104 -0.2
shell tlsr9518adk80d FLASH 466214 466150 -64 -0.0
RAM 72484 72460 -24 -0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 640844 640684 -160 -0.0
RAM 52200 52096 -104 -0.2
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 650714 650544 -170 -0.0
RAM 60388 60284 -104 -0.2
thermostat tlsr9518adk80d FLASH 625778 625608 -170 -0.0
RAM 57084 56980 -104 -0.2
window-covering tlsr9118bdk40d FLASH 519004 518834 -170 -0.0
RAM 97800 97696 -104 -0.1
tizen all-clusters-app arm unknown 1584 1584 0 0.0
FLASH 1634664 1634116 -548 -0.0
RAM 46012 46004 -8 -0.0
chip-tool-ubsan arm unknown 2384 2384 0 0.0
FLASH 16156442 16154890 -1552 -0.0
RAM 7097980 7097584 -396 -0.0

Copy link

github-actions bot commented Jul 3, 2024

PR #34168: Size comparison from 4ef104b to b759ffe

Increases above 0.2%:

platform target config section 4ef104b b759ffe change % change
bl702 lighting-app bl702 RAM 15161 15265 104 0.7
bl702+mfd RAM 15313 15417 104 0.7
bl702+rpc RAM 24181 24285 104 0.4
bl706-eth RAM 27272 27376 104 0.4
bl706-wifi RAM 14605 14709 104 0.7
bl702l lighting-app bl702l RAM 21732 21836 104 0.5
bl702l+mfd RAM 21892 21996 104 0.5
Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 4ef104b b759ffe change % change
bl602 lighting-app bl602 FLASH 1271088 1271026 -62 -0.0
RAM 95328 95328 0 0.0
bl602+mfd FLASH 1285602 1285284 -318 -0.0
RAM 95472 95472 0 0.0
bl602+rpc FLASH 1310304 1309986 -318 -0.0
RAM 103752 103752 0 0.0
bl702 lighting-app bl702 FLASH 1092238 1091924 -314 -0.0
RAM 15161 15265 104 0.7
bl702+mfd FLASH 1102932 1102618 -314 -0.0
RAM 15313 15417 104 0.7
bl702+rpc FLASH 1182048 1181734 -314 -0.0
RAM 24181 24285 104 0.4
bl706-eth FLASH 875328 875196 -132 -0.0
RAM 27272 27376 104 0.4
bl706-wifi FLASH 1127724 1127270 -454 -0.0
RAM 14605 14709 104 0.7
bl702l lighting-app bl702l FLASH 1079124 1078806 -318 -0.0
RAM 21732 21836 104 0.5
bl702l+mfd FLASH 1090386 1090068 -318 -0.0
RAM 21892 21996 104 0.5
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 797344 797220 -124 -0.0
RAM 106636 106636 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816260 816144 -116 -0.0
RAM 116948 116956 8 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 807712 807588 -124 -0.0
RAM 111236 111236 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 760552 760428 -124 -0.0
RAM 105328 105336 8 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 746272 746156 -116 -0.0
RAM 105576 105576 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606186 605862 -324 -0.1
RAM 204508 204508 0 0.0
lock CC3235SF_LAUNCHXL FLASH 651214 650890 -324 -0.0
RAM 204780 204780 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 666345 666225 -120 -0.0
RAM 75100 75100 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 686197 686077 -120 -0.0
RAM 77732 77732 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 686197 686077 -120 -0.0
RAM 77732 77732 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 643133 643013 -120 -0.0
RAM 70168 70168 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 608873 608745 -128 -0.0
RAM 70804 70804 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 628517 628389 -128 -0.0
RAM 73356 73348 -8 -0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 628517 628389 -128 -0.0
RAM 73356 73348 -8 -0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 624401 624273 -128 -0.0
RAM 73820 73820 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 644117 643989 -128 -0.0
RAM 76372 76364 -8 -0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 644117 643989 -128 -0.0
RAM 76372 76364 -8 -0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 592973 592845 -128 -0.0
RAM 67788 67788 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 612825 612689 -136 -0.0
RAM 70420 70428 8 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 612825 612689 -136 -0.0
RAM 70420 70428 8 0.0
efr32 lighting-app BRD4187C FLASH 923444 923344 -100 -0.0
RAM 134996 134984 -12 -0.0
lock-app BRD4338a FLASH 740132 739812 -320 -0.0
RAM 203996 204000 4 0.0
window-app BRD4187C FLASH 1012376 1012048 -328 -0.0
RAM 129632 129620 -12 -0.0
esp32 all-clusters-app c3devkit DRAM 88396 88332 -64 -0.1
FLASH 1468016 1467674 -342 -0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 114868 114868 0 0.0
FLASH 1537007 1536675 -332 -0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4592 4592 0 0.0
FLASH 2530144 2529488 -656 -0.0
RAM 125112 125072 -40 -0.0
all-clusters-app debug unknown 5368 5368 0 0.0
FLASH 5583934 5583070 -864 -0.0
RAM 488152 488144 -8 -0.0
all-clusters-minimal-app debug unknown 5288 5288 0 0.0
FLASH 5053880 5053304 -576 -0.0
RAM 232968 232960 -8 -0.0
bridge-app debug unknown 5256 5256 0 0.0
FLASH 4478360 4477656 -704 -0.0
RAM 212832 212744 -88 -0.0
chip-tool debug unknown 5728 5728 0 0.0
FLASH 11714375 11713767 -608 -0.0
RAM 543394 543386 -8 -0.0
chip-tool-ipv6only arm64 unknown 20032 20008 -24 -0.1
FLASH 10830716 10829996 -720 -0.0
RAM 592368 592216 -152 -0.0
fabric-admin debug unknown 5592 5592 0 0.0
FLASH 10693287 10692711 -576 -0.0
RAM 537458 537418 -40 -0.0
fabric-bridge-app debug unknown 5264 5264 0 0.0
FLASH 4348904 4348200 -704 -0.0
RAM 204960 204872 -88 -0.0
lighting-app debug+rpc+ui unknown 5936 5936 0 0.0
FLASH 5373602 5372898 -704 -0.0
RAM 221640 221600 -40 -0.0
lock-app debug unknown 5192 5192 0 0.0
FLASH 4541944 4541224 -720 -0.0
RAM 200248 200240 -8 -0.0
ota-provider-app debug unknown 4576 4576 0 0.0
FLASH 4197800 4197096 -704 -0.0
RAM 194544 194520 -24 -0.0
ota-requestor-app debug unknown 4512 4512 0 0.0
FLASH 4323160 4322632 -528 -0.0
RAM 199168 199176 8 0.0
shell debug unknown 4112 4112 0 0.0
FLASH 2796957 2796509 -448 -0.0
RAM 150512 150504 -8 -0.0
thermostat-no-ble arm64 unknown 9184 9144 -40 -0.4
FLASH 4168284 4167484 -800 -0.0
RAM 235864 235664 -200 -0.1
tv-app debug unknown 5472 5472 0 0.0
FLASH 5605640 5605176 -464 -0.0
RAM 341800 341760 -40 -0.0
tv-casting-app debug unknown 5096 5096 0 0.0
FLASH 9883886 9883422 -464 -0.0
RAM 400824 400816 -8 -0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1502428 1502292 -136 -0.0
RAM 226656 226640 -16 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 881476 881364 -112 -0.0
RAM 139693 139573 -120 -0.1
nrf7002dk_nrf5340_cpuapp FLASH 951992 951880 -112 -0.0
RAM 138121 138001 -120 -0.1
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 826988 826884 -104 -0.0
RAM 138591 138487 -104 -0.1
nxp contact k32w0+release FLASH 575996 575908 -88 -0.0
RAM 70024 70004 -20 -0.0
k32w1+release FLASH 591232 591136 -96 -0.0
RAM 74056 74056 0 0.0
light k32w0+release FLASH 610120 610008 -112 -0.0
RAM 69500 69480 -20 -0.0
k32w1+release FLASH 674824 674712 -112 -0.0
RAM 82816 82816 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1614140 1613828 -312 -0.0
RAM 207148 207148 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1534908 1534596 -312 -0.0
RAM 204052 204036 -16 -0.0
light cy8ckit_062s2_43012 FLASH 1461404 1461100 -304 -0.0
RAM 197332 197308 -24 -0.0
lock cy8ckit_062s2_43012 FLASH 1463268 1462956 -312 -0.0
RAM 224396 224380 -16 -0.0
qpg lighting-app qpg6105+debug FLASH 651156 651052 -104 -0.0
RAM 104564 104560 -4 -0.0
lock-app qpg6105+debug FLASH 611280 611168 -112 -0.0
RAM 99240 99228 -12 -0.0
stm32 light STM32WB5MM-DK FLASH 472544 472440 -104 -0.0
RAM 141652 141660 8 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 632646 632486 -160 -0.0
RAM 50528 50424 -104 -0.2
all-clusters-app tlsr9118bdk40d FLASH 657414 657232 -182 -0.0
RAM 145872 145760 -112 -0.1
all-clusters-minimal-app tlsr9528a FLASH 777718 777548 -170 -0.0
RAM 110684 110580 -104 -0.1
bridge-app tlsr9258a FLASH 675642 675472 -170 -0.0
RAM 95304 95200 -104 -0.1
contact-sensor-app tlsr9528a_retention FLASH 634230 634070 -160 -0.0
RAM 50572 50468 -104 -0.2
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 720030 719860 -170 -0.0
RAM 77148 77044 -104 -0.1
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 612458 612288 -170 -0.0
RAM 142104 142000 -104 -0.1
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 800244 800074 -170 -0.0
RAM 100508 100404 -104 -0.1
lock-app-dfu tlsr9528a FLASH 665804 665634 -170 -0.0
RAM 69860 69756 -104 -0.1
ota-requestor-app tlsr9258a FLASH 694972 694802 -170 -0.0
RAM 95028 94924 -104 -0.1
pump-app tlsr9518adk80d FLASH 616504 616334 -170 -0.0
RAM 56952 56848 -104 -0.2
pump-controller-app tlsr9518adk80d FLASH 606888 606718 -170 -0.0
RAM 56752 56648 -104 -0.2
shell tlsr9518adk80d FLASH 466214 466150 -64 -0.0
RAM 72484 72460 -24 -0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 640844 640684 -160 -0.0
RAM 52200 52096 -104 -0.2
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 650714 650544 -170 -0.0
RAM 60388 60284 -104 -0.2
thermostat tlsr9518adk80d FLASH 625778 625608 -170 -0.0
RAM 57084 56980 -104 -0.2
window-covering tlsr9118bdk40d FLASH 519004 518834 -170 -0.0
RAM 97800 97696 -104 -0.1
tizen all-clusters-app arm unknown 1584 1584 0 0.0
FLASH 1634664 1634116 -548 -0.0
RAM 46012 46004 -8 -0.0
chip-tool-ubsan arm unknown 2384 2384 0 0.0
FLASH 16156442 16154890 -1552 -0.0
RAM 7097980 7097584 -396 -0.0

ASAN and TSAN both use initializers, so enabling it for Debug builds breaks
those in CI. Ideally we could just turn it off for builds that actually use
*SAN but that probably requires migrating the project to use xcconfig files.
Copy link

github-actions bot commented Jul 4, 2024

PR #34168: Size comparison from 4ef104b to 8333a53

Increases above 0.2%:

platform target config section 4ef104b 8333a53 change % change
bl702 lighting-app bl702 RAM 15161 15265 104 0.7
bl702+mfd RAM 15313 15417 104 0.7
bl702+rpc RAM 24181 24285 104 0.4
bl706-eth RAM 27272 27376 104 0.4
bl706-wifi RAM 14605 14709 104 0.7
bl702l lighting-app bl702l RAM 21732 21836 104 0.5
bl702l+mfd RAM 21892 21996 104 0.5
linux fabric-admin debug unknown 5592 5616 24 0.4
FLASH 10693287 10796615 103328 1.0
RAM 537458 540226 2768 0.5
Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 4ef104b 8333a53 change % change
bl602 lighting-app bl602 FLASH 1271088 1271026 -62 -0.0
RAM 95328 95328 0 0.0
bl602+mfd FLASH 1285602 1285284 -318 -0.0
RAM 95472 95472 0 0.0
bl602+rpc FLASH 1310304 1309986 -318 -0.0
RAM 103752 103752 0 0.0
bl702 lighting-app bl702 FLASH 1092238 1091924 -314 -0.0
RAM 15161 15265 104 0.7
bl702+mfd FLASH 1102932 1102618 -314 -0.0
RAM 15313 15417 104 0.7
bl702+rpc FLASH 1182048 1181734 -314 -0.0
RAM 24181 24285 104 0.4
bl706-eth FLASH 875328 875196 -132 -0.0
RAM 27272 27376 104 0.4
bl706-wifi FLASH 1127724 1127270 -454 -0.0
RAM 14605 14709 104 0.7
bl702l lighting-app bl702l FLASH 1079124 1078806 -318 -0.0
RAM 21732 21836 104 0.5
bl702l+mfd FLASH 1090386 1090068 -318 -0.0
RAM 21892 21996 104 0.5
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 797344 797084 -260 -0.0
RAM 106636 106636 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816260 816000 -260 -0.0
RAM 116948 116956 8 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 807712 807452 -260 -0.0
RAM 111236 111236 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 760552 760308 -244 -0.0
RAM 105328 105336 8 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 746272 746036 -236 -0.0
RAM 105576 105576 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606186 605706 -480 -0.1
RAM 204508 204508 0 0.0
lock CC3235SF_LAUNCHXL FLASH 651214 650734 -480 -0.1
RAM 204780 204780 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 666345 666225 -120 -0.0
RAM 75100 75100 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 686197 686077 -120 -0.0
RAM 77732 77732 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 686197 686077 -120 -0.0
RAM 77732 77732 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 643133 643013 -120 -0.0
RAM 70168 70168 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 608873 608745 -128 -0.0
RAM 70804 70804 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 628517 628389 -128 -0.0
RAM 73356 73348 -8 -0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 628517 628389 -128 -0.0
RAM 73356 73348 -8 -0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 624401 624273 -128 -0.0
RAM 73820 73820 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 644117 643989 -128 -0.0
RAM 76372 76364 -8 -0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 644117 643989 -128 -0.0
RAM 76372 76364 -8 -0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 592973 592845 -128 -0.0
RAM 67788 67788 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 612825 612689 -136 -0.0
RAM 70420 70428 8 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 612825 612689 -136 -0.0
RAM 70420 70428 8 0.0
efr32 lighting-app BRD4187C FLASH 923444 923344 -100 -0.0
RAM 134996 134984 -12 -0.0
lock-app BRD4338a FLASH 740132 739812 -320 -0.0
RAM 203996 204000 4 0.0
window-app BRD4187C FLASH 1012376 1012048 -328 -0.0
RAM 129632 129620 -12 -0.0
esp32 all-clusters-app c3devkit DRAM 88396 88332 -64 -0.1
FLASH 1468016 1467674 -342 -0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 114868 114868 0 0.0
FLASH 1537007 1536675 -332 -0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4592 4592 0 0.0
FLASH 2530144 2529008 -1136 -0.0
RAM 125112 125072 -40 -0.0
all-clusters-app debug unknown 5368 5368 0 0.0
FLASH 5583934 5582574 -1360 -0.0
RAM 488152 488144 -8 -0.0
all-clusters-minimal-app debug unknown 5288 5288 0 0.0
FLASH 5053880 5052856 -1024 -0.0
RAM 232968 232992 24 0.0
bridge-app debug unknown 5256 5256 0 0.0
FLASH 4478360 4477208 -1152 -0.0
RAM 212832 212744 -88 -0.0
chip-tool debug unknown 5728 5728 0 0.0
FLASH 11714375 11713207 -1168 -0.0
RAM 543394 543386 -8 -0.0
chip-tool-ipv6only arm64 unknown 20032 20008 -24 -0.1
FLASH 10830716 10829612 -1104 -0.0
RAM 592368 592192 -176 -0.0
fabric-admin debug unknown 5592 5616 24 0.4
FLASH 10693287 10796615 103328 1.0
RAM 537458 540226 2768 0.5
fabric-bridge-app debug unknown 5264 4528 -736 -14.0
FLASH 4348904 4242760 -106144 -2.4
RAM 204960 198808 -6152 -3.0
lighting-app debug+rpc+ui unknown 5936 5936 0 0.0
FLASH 5373602 5372450 -1152 -0.0
RAM 221640 221600 -40 -0.0
lock-app debug unknown 5192 5192 0 0.0
FLASH 4541944 4540776 -1168 -0.0
RAM 200248 200240 -8 -0.0
ota-provider-app debug unknown 4576 4576 0 0.0
FLASH 4197800 4196616 -1184 -0.0
RAM 194544 194520 -24 -0.0
ota-requestor-app debug unknown 4512 4512 0 0.0
FLASH 4323160 4322152 -1008 -0.0
RAM 199168 199176 8 0.0
shell debug unknown 4112 4112 0 0.0
FLASH 2796957 2795981 -976 -0.0
RAM 150512 150504 -8 -0.0
thermostat-no-ble arm64 unknown 9184 9144 -40 -0.4
FLASH 4168284 4167132 -1152 -0.0
RAM 235864 235640 -224 -0.1
tv-app debug unknown 5472 5472 0 0.0
FLASH 5605640 5604696 -944 -0.0
RAM 341800 341760 -40 -0.0
tv-casting-app debug unknown 5096 5096 0 0.0
FLASH 9883886 9882974 -912 -0.0
RAM 400824 400816 -8 -0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1502428 1502292 -136 -0.0
RAM 226656 226640 -16 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 881476 881364 -112 -0.0
RAM 139693 139573 -120 -0.1
nrf7002dk_nrf5340_cpuapp FLASH 951992 951880 -112 -0.0
RAM 138121 138001 -120 -0.1
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 826988 826896 -92 -0.0
RAM 138591 138487 -104 -0.1
nxp contact k32w0+release FLASH 575996 575916 -80 -0.0
RAM 70024 70004 -20 -0.0
k32w1+release FLASH 591232 591144 -88 -0.0
RAM 74056 74056 0 0.0
light k32w0+release FLASH 610120 610016 -104 -0.0
RAM 69500 69480 -20 -0.0
k32w1+release FLASH 674824 674728 -96 -0.0
RAM 82816 82816 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1614140 1613700 -440 -0.0
RAM 207148 207148 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1534908 1534468 -440 -0.0
RAM 204052 204036 -16 -0.0
light cy8ckit_062s2_43012 FLASH 1461404 1460972 -432 -0.0
RAM 197332 197308 -24 -0.0
lock cy8ckit_062s2_43012 FLASH 1463268 1462828 -440 -0.0
RAM 224396 224380 -16 -0.0
qpg lighting-app qpg6105+debug FLASH 651156 651052 -104 -0.0
RAM 104564 104560 -4 -0.0
lock-app qpg6105+debug FLASH 611280 611168 -112 -0.0
RAM 99240 99228 -12 -0.0
stm32 light STM32WB5MM-DK FLASH 472544 472440 -104 -0.0
RAM 141652 141660 8 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 632646 632486 -160 -0.0
RAM 50528 50424 -104 -0.2
all-clusters-app tlsr9118bdk40d FLASH 657414 657232 -182 -0.0
RAM 145872 145760 -112 -0.1
all-clusters-minimal-app tlsr9528a FLASH 777718 777548 -170 -0.0
RAM 110684 110580 -104 -0.1
bridge-app tlsr9258a FLASH 675642 675472 -170 -0.0
RAM 95304 95200 -104 -0.1
contact-sensor-app tlsr9528a_retention FLASH 634230 634070 -160 -0.0
RAM 50572 50468 -104 -0.2
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 720030 719860 -170 -0.0
RAM 77148 77044 -104 -0.1
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 612458 612288 -170 -0.0
RAM 142104 142000 -104 -0.1
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 800244 800074 -170 -0.0
RAM 100508 100404 -104 -0.1
lock-app-dfu tlsr9528a FLASH 665804 665634 -170 -0.0
RAM 69860 69756 -104 -0.1
ota-requestor-app tlsr9258a FLASH 694972 694802 -170 -0.0
RAM 95028 94924 -104 -0.1
pump-app tlsr9518adk80d FLASH 616504 616334 -170 -0.0
RAM 56952 56848 -104 -0.2
pump-controller-app tlsr9518adk80d FLASH 606888 606718 -170 -0.0
RAM 56752 56648 -104 -0.2
shell tlsr9518adk80d FLASH 466214 466150 -64 -0.0
RAM 72484 72460 -24 -0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 640844 640684 -160 -0.0
RAM 52200 52096 -104 -0.2
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 650714 650544 -170 -0.0
RAM 60388 60284 -104 -0.2
thermostat tlsr9518adk80d FLASH 625778 625608 -170 -0.0
RAM 57084 56980 -104 -0.2
window-covering tlsr9118bdk40d FLASH 519004 518834 -170 -0.0
RAM 97800 97696 -104 -0.1
tizen all-clusters-app arm unknown 1584 1584 0 0.0
FLASH 1634664 1633868 -796 -0.0
RAM 46012 46004 -8 -0.0
chip-tool-ubsan arm unknown 2384 2384 0 0.0
FLASH 16156442 16153886 -2556 -0.0
RAM 7097980 7097212 -768 -0.0

@mergify mergify bot merged commit f199ba4 into project-chip:master Jul 4, 2024
68 checks passed
@ksperling-apple ksperling-apple deleted the darwin-no-inits branch July 4, 2024 03:40
austina-csa pushed a commit to austina-csa/connectedhomeip that referenced this pull request Jul 10, 2024
…p#34168)

* Darwin: Prohibit static initializers in Matter.framework

Globals should either be "constinit" (i.e. use a constrexpr constructor) and
trivially destructible, or use the Global<> / AtomicGlobal<> helpers.

* Update src/messaging/ReliableMessageProtocolConfig.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Use correct value in ReliableMessageProtocolConfig unit test override

* Enable -no_inits for release builds only

ASAN and TSAN both use initializers, so enabling it for Debug builds breaks
those in CI. Ideally we could just turn it off for builds that actually use
*SAN but that probably requires migrating the project to use xcconfig files.

---------

Co-authored-by: Boris Zbarsky <[email protected]>
woody-apple added a commit that referenced this pull request Jul 10, 2024
@ksperling-apple ksperling-apple restored the darwin-no-inits branch July 11, 2024 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants