Skip to content

Conversation

TimSylvester
Copy link
Collaborator

@TimSylvester TimSylvester commented Aug 26, 2025

Add weak pointer handling and final to all the most-derived classes using WeakPtrFactory, and add comments reminding about the need for the same in any new derived classes.

Follow-up to #3726

Resolves #3758

… using `WeakPtrFactory`, and add comments reminding about the need for the same in any new derived classes.
@TimSylvester TimSylvester self-assigned this Aug 26, 2025
@TimSylvester TimSylvester added the bug Something isn't working label Aug 26, 2025
Copy link

Bloaty Results (iOS) 🐋

Compared to main

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0% +2.88Ki  [ = ]       0    TOTAL

Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results-ios/pr-3763-compared-to-main.txt

Copy link

Bloaty Results 🐋

Compared to main

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0% +73.4Ki  +0.1% +21.8Ki    TOTAL

Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results/pr-3763-compared-to-main.txt

Compared to d387090 (legacy)

    FILE SIZE        VM SIZE    
 --------------  -------------- 
   +46% +53.5Mi  +483% +28.9Mi    TOTAL

Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results/pr-3763-compared-to-legacy.txt

Copy link

Benchmark Results ⚡

Benchmark                                                     Time             CPU      Time Old      Time New       CPU Old       CPU New
------------------------------------------------------------------------------------------------------------------------------------------
OVERALL_GEOMEAN                                            -0.0074         -0.0066             0             0             0             0

Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/benchmark-results/pr-3763-compared-to-main.txt

@TimSylvester TimSylvester marked this pull request as ready for review August 27, 2025 14:57
@louwers louwers merged commit 764f73c into maplibre:main Sep 2, 2025
49 of 59 checks passed
@louwers louwers deleted the fix/3758 branch September 2, 2025 14:35
TimSylvester added a commit to WetDogWeather/maplibre-gl-native that referenced this pull request Sep 3, 2025
* main:
  Create macOS amalgamation for core releases (maplibre#3768)
  Add weak pointer handling (maplibre#3763)
  Temporarily disable Windows CI (maplibre#3775)
  chore(ci): pin actions to shas (maplibre#3769)
  Fix compile error when building with MLN_USE_TRACY (maplibre#3774)
  set MLN_WITH_OPENGL=OFF by default, like Metal/Vulkan (maplibre#3772)
  Tweak Linux amalgamation (maplibre#3767)
  Tweak layer depth distribution (maplibre#3738)
  Add Sentry build tags (maplibre#3765)
  Release MapLibre Android 11.13.1 (maplibre#3761)
  Release MapLibre iOS 6.18.1 (maplibre#3762)
  Add weak pointer management to RasterSource and derived classes (maplibre#3726)
  Fix UB in TaggedString constructor (maplibre#3748)
  Add Compose Multiplatform section to README (maplibre#3751)
  format Bazel files with buildifier (maplibre#3756)
  use separate install-sccache script (maplibre#3755)
  Fix Android backend cleanup (maplibre#3681)

# Conflicts:
#	include/mbgl/style/sources/raster_dem_source.hpp
#	include/mbgl/style/sources/vector_source.hpp
#	platform/ios/BUILD.bazel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Make sure derived classes with base classes that use WeakPtrFactory destroy it in their destructor
2 participants