| Summary: | REGRESSION(r256633): 4% memory regression in new Membuster, possibly some leaking in WebKit Malloc? (Requested by yusukesuzuki on #webkit). | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | WebKit Commit Bot <commit-queue> | ||||||
| Component: | New Bugs | Assignee: | WebKit Commit Bot <commit-queue> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | chris.reid, Hironori.Fujii, webkit-bug-importer, ysuzuki | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 197684 | ||||||||
| Attachments: |
|
||||||||
|
Description
WebKit Commit Bot
2020-02-14 22:46:45 PST
Created attachment 390856 [details] ROLLOUT of r256633 Any committer can land this patch automatically by marking it commit-queue+. The commit-queue will build and test the patch before landing to ensure that the rollout will be successful. This process takes approximately 15 minutes. If you would like to land the rollout faster, you can use the following command: webkit-patch land-attachment ATTACHMENT_ID where ATTACHMENT_ID is the ID of this attachment. Comment on attachment 390856 [details] ROLLOUT of r256633 Clearing flags on attachment: 390856 Committed r256700: <https://trac.webkit.org/changeset/256700> All reviewed patches have been landed. Closing bug. Created attachment 390861 [details]
Potential fix
These are the changes isolated for mac and a potential fix.
I believe the cause of the memory regression was because the file descriptor for the mapping was only opened with O_WRONLY and not O_RDWR which caused the mmap calls to fail on mac with EPERM.
The memory regression was likely resources stored in memory that were previously in a mapped file.
I added FileOpenMode::ReadWrite to match the flags from before that patch `O_RDWR | O_CREAT | O_EXCL`.
(In reply to Christopher Reid from comment #5) > Created attachment 390861 [details] > Potential fix > > These are the changes isolated for mac and a potential fix. > > I believe the cause of the memory regression was because the file descriptor > for the mapping was only opened with O_WRONLY and not O_RDWR which caused > the mmap calls to fail on mac with EPERM. > The memory regression was likely resources stored in memory that were > previously in a mapped file. > > I added FileOpenMode::ReadWrite to match the flags from before that patch > `O_RDWR | O_CREAT | O_EXCL`. I'm building Safari and running new Membuster to ensure this patch fixes the issue. |