WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
33393
Remove unnecessary #include in FastMalloc.cpp
https://bugs.webkit.org/show_bug.cgi?id=33393
Summary
Remove unnecessary #include in FastMalloc.cpp
Yong Li
Reported
2010-01-08 11:53:32 PST
#if FORCE_SYSTEM_MALLOC #include <stdlib.h> #if !OS(WINDOWS) #include <pthread.h> #else #include "windows.h" #endif Not sure if <stdlib.h> is needed, but <pthread.h> or "windows.h" is definitely unnecessary.
Attachments
the patch
(948 bytes, patch)
2010-01-08 12:01 PST
,
Yong Li
darin
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yong Li
Comment 1
2010-01-08 12:01:40 PST
Created
attachment 46150
[details]
the patch
WebKit Review Bot
Comment 2
2010-01-08 12:05:41 PST
style-queue ran check-webkit-style on
attachment 46150
[details]
without any errors.
Eric Seidel (no email)
Comment 3
2010-01-08 12:37:39 PST
Comment on
attachment 46150
[details]
the patch OK. Which platforms use FORCE_SYSTEM_MALLOC at the moment?
Darin Adler
Comment 4
2010-01-08 13:38:37 PST
Comment on
attachment 46150
[details]
the patch It's clear that the <stdlib.h> include is not needed because FastMalloc.h includes it. There is no use of pthread down here and there is an include of pthread.h above for the case where we need it. But how did you determine the windows.h include was not needed? I'll take your word for it.
Yong Li
Comment 5
2010-01-08 13:47:28 PST
(In reply to
comment #4
)
> (From update of
attachment 46150
[details]
) > It's clear that the <stdlib.h> include is not needed because FastMalloc.h > includes it. There is no use of pthread down here and there is an include of > pthread.h above for the case where we need it. But how did you determine the > windows.h include was not needed? I'll take your word for it.
I cannot see any #if OS(WINOS) or something similar inside #ifdef FORCE_SYSTEM_MALLOC block. Also, I successfully made FastMalloc build for win32 with forcing FORCE_SYSTEM_MALLOC=1 :) Will commit it soon and monitor the buildbots.
Yong Li
Comment 6
2010-01-08 14:09:50 PST
landed @
r53008
bug closed
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