History log of /external/webkit/Source/WebKit/android/jni/DeviceMotionClientImpl.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b4d178df818e8b6e7a1cfbb0e34bbf7bb9d74ec9 12-May-2011 Steve Block <steveblock@google.com> Always check weak global references before using them

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
/external/webkit/Source/WebKit/android/jni/DeviceMotionClientImpl.cpp
a2c606d1d8312a5d063e4a11e5911d9c8e4a3d19 13-May-2011 Ben Murdoch <benm@google.com> Merge WebKit at r75993: Move WebKit/android files to Source

Change-Id: Ifa871f8320bdb3a09fe189fffecc23f702c394b9
/external/webkit/Source/WebKit/android/jni/DeviceMotionClientImpl.cpp