Bug 164431 - Implement MallocScribble for bmalloc
Summary: Implement MallocScribble for bmalloc
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: bmalloc (show other bugs)
Version: Safari 10
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: David Kilzer (:ddkilzer)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-11-04 13:59 PDT by David Kilzer (:ddkilzer)
Modified: 2018-02-14 10:35 PST (History)
3 users (show)

See Also:


Attachments
Patch v1 (9.35 KB, patch)
2016-11-16 13:14 PST, David Kilzer (:ddkilzer)
beidson: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2016-11-04 13:59:38 PDT
We should add support for MallocScribble to bmalloc.
Comment 1 Radar WebKit Bug Importer 2016-11-04 14:00:00 PDT
<rdar://problem/29118340>
Comment 2 David Kilzer (:ddkilzer) 2016-11-16 13:14:27 PST
Created attachment 294968 [details]
Patch v1
Comment 3 Geoffrey Garen 2016-11-16 13:32:39 PST
Comment on attachment 294968 [details]
Patch v1

Why do we want to implement scribbling in bmalloc instead of deferring to system malloc?

Do we also plan to duplicate the 14 other Malloc* options, or is there something special about scribbling?

In general, I think it's best to defer debugging options to a separate implementation -- system malloc or our own -- so that debugging cruft doesn't sneak into high-performance code. For example, I don't think we want to do the m_isMallocScribbleEnabled check in deallocateFastCase. Even if we mark it unlikely, we still increase code size and harm register allocation. I went out of my way to avoid even checking m_isBmallocEnabled in deallocateFastCase. I'd like to keep that code as tight as possible.
Comment 4 Brady Eidson 2018-02-14 10:35:53 PST
Comment on attachment 294968 [details]
Patch v1

Patches that have been up for review since 2016 are almost certainly too stale to be relevant to trunk in their current form.

If this patch is still important please rebase it and post it for review again.