History log of /hardware/qcom/gps/msm8996/utils/MsgTask.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4eda8e1eabead3a9115bdd9cedd7e336ed431dbe 23-Nov-2016 Dante Russo <drusso@codeaurora.org> fixing a race condition on MsgTask::destroy()

when MsgTask::destroy() happens, msg_q_unblock() triggers
the running thread to come out from blocking state. A race
condition may happen such that that thread may complete
first, causing msgTask obj to be already deleted. A next
allocation may change the value at MsgTask::mThread. Then
when control comes back to destroy(), it may try to check
mThread and call delete on it to crash the program.

mThread is a heap obj, so it is possible to delete it after
the hosting msgTask obj is deleted. We just have to keep
its value on the stack before calling msg_q_unblock().

Change-Id: If15884815eea05fbfa523ec92aa300ed21ef897c
CR-Fixed: 1091530
/hardware/qcom/gps/msm8996/utils/MsgTask.cpp
4035be28a255eaa5605dbd9abeb2340db584249c 15-Jan-2016 Patrick Tjin <pattjin@google.com> msm8996: Add initial GPS HAL drop

Based on this commit:
commit 78bb13288e9ac69a985cf8a4b8c15b21770b59c5
Author: Valeri Atamaniouk <valeria@codeaurora.org>
Date: Wed Oct 21 18:53:58 2015 +0300

Location: reduce memory footprint

Reduce memory footprint by moving data sets into const
data segments. Update function parameters to accept const
parameters when appropriate.

CRs-fixed: 928770
Change-Id: I42955cf18de2b0541cfaed89359cdcf9ae6fea8a

Change-Id: I4ca4d06500d479ef3caf1d268ad44fc6cfb0a87b
/hardware/qcom/gps/msm8996/utils/MsgTask.cpp