RESOLVED INVALID185997
[Cocoa]: Remove what appears to be a stale mbmalloc target
https://bugs.webkit.org/show_bug.cgi?id=185997
Summary [Cocoa]: Remove what appears to be a stale mbmalloc target
Joseph Pecoraro
Reported 2018-05-25 14:51:19 PDT
Remove what appears to be a stale mbmalloc target • Attempting to build this target fails to link due to missing Foundation symbols • It looks like the PerformanceTools/MallocBench Xcode project has a mbmalloc target which does build and work
Attachments
[PATCH] Proposed Fix (13.71 KB, patch)
2018-05-25 14:54 PDT, Joseph Pecoraro
no flags
Joseph Pecoraro
Comment 1 2018-05-25 14:54:17 PDT
Created attachment 341331 [details] [PATCH] Proposed Fix I'm able to do things without this target... but I'll do a bit more qualification before toggling that cq flag.
Joseph Pecoraro
Comment 2 2018-05-25 17:34:43 PDT
Ahh, so I see some build commands for linux ports, but I'm not sure this it actually makes sense still. Is there an advantage to the mbmalloc in bmalloc versus the mbmalloc in MallocBench? They seem to produce the same build product, so I suspect only 1 should actually be around.
Darin Adler
Comment 3 2018-05-28 20:32:44 PDT
Comment on attachment 341331 [details] [PATCH] Proposed Fix Looks like you need to remove mbmalloc.cpp from bmalloc/CMakeLists.txt too. There’s also some mbmalloc stuff in the WTF Xcode project.
Joseph Pecoraro
Comment 4 2018-05-29 10:57:39 PDT
Apparently this is not stale. Closing the bug. • The mbmalloc.dylib produced here uses bmalloc. • The mbmalloc.dylib produced by MallocBench uses the system malloc.
Geoffrey Garen
Comment 5 2018-05-29 11:26:01 PDT
Maybe we should clean this up by moving the mbmalloc targets from MallocBench and bmalloc into separate projects inside PerformanceTests/MallocBench. The point of mbmalloc is to be a shim around a given malloc implementation. So, you could think of it as a feature of MallocBench that it includes sub-projects that can shim around different mallocs. For example, if we wanted MallocBench to test JEMalloc or TCMalloc, we would need to write additional mbmalloc shims.
Note You need to log in before you can comment on or make changes to this bug.