summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorYury Kotlyarov <CKNM36@motorolasolutions.com>2019-08-06 15:10:59 -0500
committerYury Kotlyarov <CKNM36@motorolasolutions.com>2019-08-07 16:05:54 -0500
commitee7b0a6ab2cf7a38699fcdcfe4096b1de232f7f0 (patch)
treefc030d87530c8440bb1bb34518104c75792af252 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentf0723588de38100c49f73bbdbd7e0126200372f8 (diff)
Fix LocalOnlyHotspotReservation double stop of local hotspot.
If user executed startLocalOnlyHotspot(), then reservation.close() garbage collector still keeps reservation object until drain. If user executed startLocalOnlyHotspot second time during application life cycle, garbage collector can delete previously allocated reservation object. In this case finalize() of old reservation object will be executed, then close(), then stopLocalOnlyHotspot(). As result, new started LocalOnlyHostpot can be immediatly stopped by old reservation object delete. Steps to reproduce: execute startLocalOnlyHostpot() and reservation.close() multiple times during application life cycle, check if hotspot up couple of seconds after start. This fix prevents stopping of local hotspot if reservation was previously closed. Test: manual Bug: 139074896 Change-Id: I86c10b577dbab8cad2d5f7e19805511a93bcb668
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions