runtime/jit: inclusive language fixes
Based on:
https://source.android.com/setup/contribute/respectful-code
Bug: 161896447
Bug: 161850439
Bug: 161336379
Test: m (comment updates only).
Change-Id: Ibfb4b0c71ef2fae076a6b11dfabe07137f00a7a5
diff --git a/runtime/jit/jit_code_cache.h b/runtime/jit/jit_code_cache.h
index d055ed3..12a21a3 100644
--- a/runtime/jit/jit_code_cache.h
+++ b/runtime/jit/jit_code_cache.h
@@ -287,9 +287,9 @@
REQUIRES(!Locks::jit_lock_)
REQUIRES_SHARED(Locks::mutator_lock_);
- // Given the 'pc', try to find the JIT compiled code associated with it.
- // Return null if 'pc' is not in the code cache. 'method' is passed for
- // sanity check.
+ // Given the 'pc', try to find the JIT compiled code associated with it. 'method' may be null
+ // when LookupMethodHeader is called from MarkCodeClosure::Run() in debug builds. Return null
+ // if 'pc' is not in the code cache.
OatQuickMethodHeader* LookupMethodHeader(uintptr_t pc, ArtMethod* method)
REQUIRES(!Locks::jit_lock_)
REQUIRES_SHARED(Locks::mutator_lock_);