OSDN Git Service

Allow null self only in DecodeWeakGlobalDuringShutdown().
authorHiroshi Yamauchi <yamauchi@google.com>
Thu, 17 Sep 2015 04:11:44 +0000 (21:11 -0700)
committerHiroshi Yamauchi <yamauchi@google.com>
Thu, 17 Sep 2015 18:34:14 +0000 (11:34 -0700)
commit498b160f0cb61ea4756d8ce859ae73c522366458
treef582bfd38bc7e6fbbfd8fffc4a7f5449a962e7d5
parentfe9a1b05ea5a21b6d9a2e9e5081f5e80ff8a1ba2
Allow null self only in DecodeWeakGlobalDuringShutdown().

To follow up CL 169855, allow a null current thread only in
DecodeWeakGlobalDuringShutdown() as a special case rather than
DecodeWeakGlobal(). This is to prevent a bug where null is accidentally
passed to DecodeWeakGlobal().

Bug: 23897251

Change-Id: I5e7bb78ec739b8bfcf77284ed321d507737ee33e
runtime/class_linker.cc
runtime/java_vm_ext.cc
runtime/java_vm_ext.h