diff options
author | Pablo Guardiola <guardiola31337@gmail.com> | 2017-11-10 12:56:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-10 12:56:06 +0100 |
commit | b5140cb3426595646f39aee298ca8306d3bd0a6f (patch) | |
tree | 2070ffb6e52b62860785a777227867c899697d85 /README.md | |
parent | 91dabd01dfcd52dc40aa1c1d1db9d3f48f7abc97 (diff) | |
download | qtlocation-mapboxgl-b5140cb3426595646f39aee298ca8306d3bd0a6f.tar.gz |
[android] Cherry picks to agua (#10442)
* [android] fix map snapshotter marker example
The reference to the MapSnapshotter needs to be held for the duration of the snapshot, otherwise it might be GC'd
* [android] MapRendererRunnable - avoid weak reference table 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 'README.md')
0 files changed, 0 insertions, 0 deletions