diff options
author | Lars Knoll <lars.knoll@digia.com> | 2014-03-26 15:30:27 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-27 20:39:59 +0100 |
commit | 57f4d8b490b994b124278b2c7c656319dfe0382f (patch) | |
tree | 87ebd0f52539651f7ee7dcfa5f01325030d4a15e | |
parent | 7ae796cb141b73a1b215b2b0fd64b7ffbbd1e510 (diff) |
Remove the scribble option from the memory manager
This option doesn't make sense anymore, as we memset the object to
0 on destruction anyway.
Change-Id: Ie40563394f9cacda1b35fde114c9a6043f53d460
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
-rw-r--r-- | src/qml/jsruntime/qv4mm.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/qml/jsruntime/qv4mm.cpp b/src/qml/jsruntime/qv4mm.cpp index 95d105c993..249ec9589e 100644 --- a/src/qml/jsruntime/qv4mm.cpp +++ b/src/qml/jsruntime/qv4mm.cpp @@ -82,7 +82,6 @@ static const std::size_t CHUNK_SIZE = 1024*32; struct MemoryManager::Data { bool gcBlocked; - bool scribble; bool aggressiveGC; bool gcStats; ExecutionEngine *engine; @@ -134,7 +133,6 @@ struct MemoryManager::Data memset(nChunks, 0, sizeof(nChunks)); memset(availableItems, 0, sizeof(availableItems)); memset(allocCount, 0, sizeof(allocCount)); - scribble = !qgetenv("QV4_MM_SCRIBBLE").isEmpty(); aggressiveGC = !qgetenv("QV4_MM_AGGRESSIVE_GC").isEmpty(); gcStats = !qgetenv("QV4_MM_STATS").isEmpty(); @@ -152,10 +150,6 @@ struct MemoryManager::Data } }; -#define SCRIBBLE(obj, c, size) \ - if (m_d->scribble) \ - ::memset((void *)(obj + 1), c, size - sizeof(Managed)); - namespace QV4 { @@ -411,7 +405,6 @@ void MemoryManager::sweep(char *chunkStart, std::size_t chunkSize, size_t size) VALGRIND_MEMPOOL_FREE(this, m); #endif *f = m; - SCRIBBLE(m, 0x99, size); } } } |