WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
96924
Get rid of the inline reserveAndCommit() implementation
https://bugs.webkit.org/show_bug.cgi?id=96924
Summary
Get rid of the inline reserveAndCommit() implementation
Yong Li
Reported
2012-09-17 08:19:31 PDT
Both OSAllocatorPosix.cpp and OSAllocatorWin.cpp provide the implementation of reserveAndCommit(), but we also have an inline version in OSAllocator.h: inline void* OSAllocator::reserveAndCommit(size_t reserveSize, size_t commitSize, Usage usage, bool writable, bool executable) { void* base = reserveUncommitted(reserveSize, usage, writable, executable); commit(base, commitSize, writable, executable); return base; } I don't know why this even compile...
Attachments
Add attachment
proposed patch, testcase, etc.
Gavin Barraclough
Comment 1
2012-09-17 14:44:18 PDT
OSAllocator declares two methods called reserveAndCommit with difference signatures, one is implemented in OSAllocator.h, one is implemented in the platform specific .cpp. That said, I'm not sure if we call this one any more. We may be abel to remove it, if we do we should remove the corresponding declaration at the same time.
Yong Li
Comment 2
2012-09-17 14:58:57 PDT
Ha... Somehow I saw only one signature. A quick search shows that the inline version isn't being used. If it was, it wouldn't be good, as I don't think it is an efficient solution for OSAllocatorPosix. I'm going to get rid of it.
Yong Li
Comment 3
2012-09-18 11:50:33 PDT
actually it is invalid. sorry
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