summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2017-11-08 15:28:03 +0200
committerIvo van Dongen <info@ivovandongen.nl>2017-11-08 15:34:28 +0200
commitfe4f2f07b690e01898e3948a73344d926f3c9024 (patch)
tree98a6240ca9e76645b5bfe39d4ebe2141c7a8b424 /CONTRIBUTING.md
parent9aac976104f4c6453cf9e79e03a002565720f213 (diff)
downloadqtlocation-mapboxgl-upstream/ivd-fix-weakref-overflow.tar.gz
[android] MapRendererRunnable - avoid weak reference table overflowupstream/ivd-fix-weakref-overflow
Apparently on some devices the weak reference table is limited (numbers around 52000). Even though we don't use that many weak references, when GC is not called for a while they can stack up and a crash will occur before the GC has had the time to clear the references. The C++ peer now holds on to a global ref (strong) which can be obtained to queue the java peer and then release automatically so that the GC can take over after the runnable has been executed.
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions