Title: [247711] trunk/Source/bmalloc
- Revision
- 247711
- Author
- [email protected]
- Date
- 2019-07-22 17:18:36 -0700 (Mon, 22 Jul 2019)
Log Message
Unreviewed, follow-up fix for tls->size() access
https://bugs.webkit.org/show_bug.cgi?id=200019
* bmalloc/IsoTLS.cpp:
(bmalloc::IsoTLS::ensureEntries):
(bmalloc::IsoTLS::destructor):
Modified Paths
Diff
Modified: trunk/Source/bmalloc/ChangeLog (247710 => 247711)
--- trunk/Source/bmalloc/ChangeLog 2019-07-23 00:16:18 UTC (rev 247710)
+++ trunk/Source/bmalloc/ChangeLog 2019-07-23 00:18:36 UTC (rev 247711)
@@ -1,5 +1,14 @@
2019-07-22 Yusuke Suzuki <[email protected]>
+ Unreviewed, follow-up fix for tls->size() access
+ https://bugs.webkit.org/show_bug.cgi?id=200019
+
+ * bmalloc/IsoTLS.cpp:
+ (bmalloc::IsoTLS::ensureEntries):
+ (bmalloc::IsoTLS::destructor):
+
+2019-07-22 Yusuke Suzuki <[email protected]>
+
[bmalloc] IsoTLS is not deallocated in TLS destructor
https://bugs.webkit.org/show_bug.cgi?id=200019
Modified: trunk/Source/bmalloc/bmalloc/IsoTLS.cpp (247710 => 247711)
--- trunk/Source/bmalloc/bmalloc/IsoTLS.cpp 2019-07-23 00:16:18 UTC (rev 247710)
+++ trunk/Source/bmalloc/bmalloc/IsoTLS.cpp 2019-07-23 00:18:36 UTC (rev 247711)
@@ -114,8 +114,9 @@
entry->move(src, dst);
entry->destruct(src);
});
+ size_t oldSize = tls->size();
tls->~IsoTLS();
- vmDeallocate(tls, tls->size());
+ vmDeallocate(tls, oldSize);
}
tls = newTLS;
set(tls);
@@ -142,8 +143,9 @@
entry->scavenge(data);
entry->destruct(data);
});
+ size_t oldSize = tls->size();
tls->~IsoTLS();
- vmDeallocate(tls, tls->size());
+ vmDeallocate(tls, oldSize);
}
size_t IsoTLS::sizeForCapacity(unsigned capacity)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes