[5.6] BUG: Update VTK to to fix vtkSMPToolsAPI static initialization order issue #7467
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backports changes originally contributed to
main
through the following pull requests:This addresses a crash related to the static initialization order 'fiasco' in vtkSMPToolsAPI. It ensures proper deletion of the vtkSMPToolsAPI singleton once the last translation unit referencing it has been unloaded.
It also ensures backend-specific statics are properly initialized. when the first translation unit is loaded.
This update ensures that the SMP backend is cleaned up at the appropriate time, fixing the following macOS tests that started to fail following commit 28dca75 (ENH: Enable TBB as the default VTK SMP implementation on all platforms):
py_nomainwindow_SegmentationWidgetsTest1
py_sceneImport2428
py_SegmentStatistics
py_UtilTest
List of changes:
$ git shortlog 4bfb0f049a..46201478cd --no-merges
Jean-Christophe Fillion-Robin (3):
[Backport MR-10751] BUG: Resolve crash by fixing vtkSMPToolsAPI static initialization order issue
[Backport MR-10751] ENH: Simplify vtkSMPToolsAPIInitialize managing pointer and counter locally
[Backport MR-10751] BUG: Resolve crash by fixing initialization of backend-specific statics
(cherry picked from commit c39049a)