qcacmn: Assert in case any obj is in L-state for long
Any obj ref can be taken by modules. In the case the obj is logically deleted but not deleted physically due to some pending reference not released, it leads to memory curruption issues in unexpected places. Debugging these issues becomes difficult as there is no indication where the ref leak has happened. Especially when the curruption occurs before stop_modules is called (where there is check for ref leaks) To ease the process of debugging such issues, add a print to show the modules holding the refs after logical deletion. Also, assert in case any objs are in logically deleted state for longer than 10 secs. Change-Id: I8fa55693c89f146d859cc9ec3355f5eb1e2c3853 CRs-Fixed: 2419733
Loading
Please register or sign in to comment