WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 160364
[GTK][Unix] Implement missing WebKit::SharedMemory::create() function
https://bugs.webkit.org/show_bug.cgi?id=160364
Summary
[GTK][Unix] Implement missing WebKit::SharedMemory::create() function
Adrian Perez
Reported
2016-07-29 16:30:11 PDT
The WebKit::SharedMemory::create() function is missing for the Unix platform, which is also used by the GTK port.
Attachments
Patch
(3.28 KB, patch)
2016-07-29 16:38 PDT
,
Adrian Perez
no flags
Details
Formatted Diff
Diff
Patch
(3.30 KB, patch)
2016-07-30 03:46 PDT
,
Adrian Perez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Adrian Perez
Comment 1
2016-07-29 16:38:15 PDT
Created
attachment 284916
[details]
Patch
Carlos Garcia Campos
Comment 2
2016-07-29 23:58:16 PDT
Comment on
attachment 284916
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=284916&action=review
> Source/WebKit2/ChangeLog:3 > + Implement WebKit::SharedMemory::create() for the Unix platform.
Please, use the actual bug title here.
> Source/WebKit2/ChangeLog:14 > + (WebKit::accessModeMMap): Added helper function to convert a > + SharedMemory::Protection value into flags useable with mmap().
You are not adding it, but moving it, no?
> Source/WebKit2/Platform/unix/SharedMemoryUnix.cpp:109 > +RefPtr<SharedMemory> SharedMemory::create(void* addr, size_t size, Protection protection)
Do not use abbreviations, use either just data or address, but not addr
> Source/WebKit2/Platform/unix/SharedMemoryUnix.cpp:153 > + return SharedMemory::create(0, size, SharedMemory::Protection::ReadWrite);
Use nullptr instead of 0.
Adrian Perez
Comment 3
2016-07-30 03:46:13 PDT
Created
attachment 284939
[details]
Patch
Adrian Perez
Comment 4
2016-07-30 03:49:43 PDT
(In reply to
comment #2
)
> Comment on
attachment 284916
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=284916&action=review
> > > Source/WebKit2/ChangeLog:3 > > + Implement WebKit::SharedMemory::create() for the Unix platform. > > Please, use the actual bug title here.
Done.
> > Source/WebKit2/ChangeLog:14 > > + (WebKit::accessModeMMap): Added helper function to convert a > > + SharedMemory::Protection value into flags useable with mmap(). > > You are not adding it, but moving it, no?
The function did not exist before (It has a couple of lines picked from the old implementation of SharedMemory::allocate(), though).
> > Source/WebKit2/Platform/unix/SharedMemoryUnix.cpp:109 > > +RefPtr<SharedMemory> SharedMemory::create(void* addr, size_t size, Protection protection) > > Do not use abbreviations, use either just data or address, but not addr > > > Source/WebKit2/Platform/unix/SharedMemoryUnix.cpp:153 > > + return SharedMemory::create(0, size, SharedMemory::Protection::ReadWrite); > > Use nullptr instead of 0.
Fixed.
WebKit Commit Bot
Comment 5
2016-07-31 01:32:31 PDT
Comment on
attachment 284939
[details]
Patch Clearing flags on attachment: 284939 Committed
r203954
: <
http://trac.webkit.org/changeset/203954
>
WebKit Commit Bot
Comment 6
2016-07-31 01:32:36 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug