Skip to content

Commit

Permalink
Merge r243203 - Unreviewed, drop invalid assertions landed in r243163.
Browse files Browse the repository at this point in the history
Those assertions were causing some API tests to crash.
Also include some post-review suggestions from Darin.

* Shared/CallbackID.h:
(WebKit::CallbackID::operator=):
* Shared/OptionalCallbackID.h:
(WebKit::OptionalCallbackID::operator=):
  • Loading branch information
cdumez authored and mcatanzaro committed Aug 4, 2019
1 parent 2b9f711 commit 25ad21d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
12 changes: 12 additions & 0 deletions Source/WebKit/ChangeLog
@@ -1,3 +1,15 @@
2019-03-20 Chris Dumez <cdumez@apple.com>

Unreviewed, drop invalid assertions landed in r243163.

Those assertions were causing some API tests to crash.
Also include some post-review suggestions from Darin.

* Shared/CallbackID.h:
(WebKit::CallbackID::operator=):
* Shared/OptionalCallbackID.h:
(WebKit::OptionalCallbackID::operator=):

2019-03-19 Michael Catanzaro <mcatanzaro@igalia.com>

Build cleanly with GCC 9
Expand Down
3 changes: 0 additions & 3 deletions Source/WebKit/Shared/CallbackID.h
Expand Up @@ -49,10 +49,7 @@ class CallbackID {

ALWAYS_INLINE CallbackID& operator=(const CallbackID& otherID)
{
if (this == &otherID)
return *this;
m_id = otherID.m_id;
ASSERT(HashTraits<uint64_t>::emptyValue() != m_id && !HashTraits<uint64_t>::isDeletedValue(m_id));
return *this;
}

Expand Down
3 changes: 0 additions & 3 deletions Source/WebKit/Shared/OptionalCallbackID.h
Expand Up @@ -48,10 +48,7 @@ class OptionalCallbackID {

ALWAYS_INLINE OptionalCallbackID& operator=(const OptionalCallbackID& otherID)
{
if (this == &otherID)
return *this;
m_id = otherID.m_id;
ASSERT(!HashTraits<uint64_t>::isDeletedValue(m_id));
return *this;
}

Expand Down

0 comments on commit 25ad21d

Please sign in to comment.