Skip to content
Permalink
Browse files
bmalloc should implement malloc introspection (to stop false-positive…
… leaks when MallocStackLogging is off)

https://bugs.webkit.org/show_bug.cgi?id=141802

Reviewed by Andreas Kling.

Re-enabled this feature on iOS, now that the iOS crash should be fixed.

* bmalloc/VMHeap.cpp:
(bmalloc::VMHeap::grow):
* bmalloc/VMHeap.h:


Canonical link: https://commits.webkit.org/160284@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@180960 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
geoffreygaren committed Mar 3, 2015
1 parent 523e6ef commit 7a56c2149dbe8e8e32aaff71d937845ad1662e03
Showing 3 changed files with 16 additions and 3 deletions.
@@ -1,3 +1,16 @@
2015-03-03 Geoffrey Garen <ggaren@apple.com>

bmalloc should implement malloc introspection (to stop false-positive leaks when MallocStackLogging is off)
https://bugs.webkit.org/show_bug.cgi?id=141802

Reviewed by Andreas Kling.

Re-enabled this feature on iOS, now that the iOS crash should be fixed.

* bmalloc/VMHeap.cpp:
(bmalloc::VMHeap::grow):
* bmalloc/VMHeap.h:

2015-03-03 Geoffrey Garen <ggaren@apple.com>

bmalloc: Added missing features to the malloc zone introspection API
@@ -40,7 +40,7 @@ VMHeap::VMHeap()
void VMHeap::grow()
{
SuperChunk* superChunk = SuperChunk::create();
#if BOS(DARWIN) && !BPLATFORM(IOS)
#if BOS(DARWIN)
m_zone.addSuperChunk(superChunk);
#endif

@@ -35,7 +35,7 @@
#include "SegregatedFreeList.h"
#include "SmallChunk.h"
#include "Vector.h"
#if BOS(DARWIN) && !BPLATFORM(IOS)
#if BOS(DARWIN)
#include "Zone.h"
#endif

@@ -66,7 +66,7 @@ class VMHeap {
Vector<SmallPage*> m_smallPages;
Vector<MediumPage*> m_mediumPages;
SegregatedFreeList m_largeObjects;
#if BOS(DARWIN) && !BPLATFORM(IOS)
#if BOS(DARWIN)
Zone m_zone;
#endif
};

0 comments on commit 7a56c21

Please sign in to comment.