diff options
Diffstat (limited to 'runtime/write_barrier.h')
-rw-r--r-- | runtime/write_barrier.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/write_barrier.h b/runtime/write_barrier.h index 112154e14a..8080b0db65 100644 --- a/runtime/write_barrier.h +++ b/runtime/write_barrier.h @@ -38,15 +38,15 @@ class WriteBarrier { // safe-point. The call is not needed if null is stored in the field. template <NullCheck kNullCheck = kWithNullCheck> ALWAYS_INLINE static void ForFieldWrite(ObjPtr<mirror::Object> dst, - MemberOffset offset ATTRIBUTE_UNUSED, - ObjPtr<mirror::Object> new_value ATTRIBUTE_UNUSED) + [[maybe_unused]] MemberOffset offset, + [[maybe_unused]] ObjPtr<mirror::Object> new_value) REQUIRES_SHARED(Locks::mutator_lock_); // Must be called if a reference field of an ObjectArray in the heap changes, and before any GC // safe-point. The call is not needed if null is stored in the field. ALWAYS_INLINE static void ForArrayWrite(ObjPtr<mirror::Object> dst, - int start_offset ATTRIBUTE_UNUSED, - size_t length ATTRIBUTE_UNUSED) + [[maybe_unused]] int start_offset, + [[maybe_unused]] size_t length) REQUIRES_SHARED(Locks::mutator_lock_); // Write barrier for every reference field in an object. |