Skip to content

Fix tree support crash generation - #2370

Open
Erwan MATHIEU (wawanbreton) wants to merge 2 commits into
mainfrom
CURA-13304_crash-smoothed-support-on-model
Open

Fix tree support crash generation#2370
Erwan MATHIEU (wawanbreton) wants to merge 2 commits into
mainfrom
CURA-13304_crash-smoothed-support-on-model

Conversation

@wawanbreton

Copy link
Copy Markdown
Contributor

Previously, the TreeSupportElement objects were stored directly in a map, and some pointers over them were used. However the maps can be reorganized in memory, so that makes these pointers very unsafe. Now we use smart pointers in the maps so that they can be referenced without issues. This also removes memory duplication of the elements in various maps, and boilerplate code to actually place the objects in the maps.

Note: the fix was made previously in the tree support improvement spike. It was just cherry-picked here.

CURA-13304

CURA-13183
Previously, the TreeSupportElement objects were stored directly in a map, and some pointers over them were used. However the maps can be reorganized in memory, so that makes these pointers very unsafe. Now we use (smart) pointers in the maps so that they can be references without issues. This also removes memory duplication of the elements in various maps, and boilerplate code to actually place the objects in the maps.
@wawanbreton
Erwan MATHIEU (wawanbreton) force-pushed the CURA-13304_crash-smoothed-support-on-model branch from c3e992e to cd6991c Compare September 9, 2026 15:22

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'C++ Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.50.

Benchmark suite Current: cd6991c Previous: b0efb82 Ratio
SimplifyTestFixture/simplify_slot_noplugin 4.05119484426529 ns/iter 2.53327894515077 ns/iter 1.60

This comment was automatically generated by workflow using github-action-benchmark.

CC: Jelle Spijker (@jellespijker) Erwan MATHIEU (@wawanbreton) Casper Lamboo (@casperlamboo) HellAholic

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.

1 participant