Skip to content

Commit c4264c3

Browse files
committed
Bug 1955878 - Annotate unnecessary lock for Coverity. r=pbone
Differential Revision: https://phabricator.services.mozilla.com/D245681
1 parent 8a0b4b5 commit c4264c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

memory/build/mozjemalloc.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6012,6 +6012,7 @@ inline arena_t* ArenaCollection::GetById(arena_id_t aArenaId, bool aIsPrivate) {
60126012
MOZ_RELEASE_ASSERT(aIsPrivate);
60136013
// This function is not expected to be called before at least one private
60146014
// arena was created.
6015+
// coverity[missing_lock]
60156016
MOZ_RELEASE_ASSERT(mArenaIdKey);
60166017
arena_id_t id = (aArenaId << mArenaIdRotation) |
60176018
(aArenaId >> (sizeof(void*) * 8 - mArenaIdRotation));

0 commit comments

Comments
 (0)