summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/jni/DeviceOrientationClientImpl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Always check weak global references before using themSteve Block2011-06-021-10/+20
| | | | | | | | | | | | | | | | | | We hold weak references to Java objects from native code in several places to avoid circular reference problems. These objects may become weakly reachable at any time, after which the GC could null our weak reference, so we have to null-check at every use. Note that weak references are nulled before the referent is finalized, so we can't rely on doing work in the finalizer to wait for the currently executing message to complete and to remove other messages from the queue. This effectively reverts https://android-git.corp.google.com/g/#change,30955 Bug: 4336862 Change-Id: I431fcac11220cb406c26e31aacb9bda7ea22776e
* Merge WebKit at r75993: Move WebKit/android files to SourceBen Murdoch2011-05-161-0/+130
Change-Id: Ifa871f8320bdb3a09fe189fffecc23f702c394b9