Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a05032c6961001c252d02445bd513060f09b360b
      
https://github.com/WebKit/WebKit/commit/a05032c6961001c252d02445bd513060f09b360b
  Author: Daniel Liu <danl...@umich.edu>
  Date:   2025-08-14 (Thu, 14 Aug 2025)

  Changed paths:
    M Source/JavaScriptCore/runtime/OrderedHashTableHelper.h

  Log Message:
  -----------
  OrderedHashTable addImpl should only increment the alive entry count if no 
exception takes place
https://bugs.webkit.org/show_bug.cgi?id=293579
rdar://152034907

Reviewed by Yusuke Suzuki.

If an exception is thrown while we are calculating the normalized key, we
will end up in a state where we have incremented aliveEntryCount, but the
map will not actually have an element added. We should only increment the
aliveEntryCount if we successfully add an element to the map.

* Source/JavaScriptCore/runtime/OrderedHashTableHelper.h:
(JSC::OrderedHashTableHelper::addImpl):

Originally-landed-as: 289651.538@safari-7621-branch (44dd2c945c05). 
rdar://157790926
Canonical link: https://commits.webkit.org/298709@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to