RESOLVED INVALID Bug 99655
V8::AdjustAmountOfExternalAllocatedMemory calls in WebCoreStringResource are inaccurate
https://bugs.webkit.org/show_bug.cgi?id=99655
Summary V8::AdjustAmountOfExternalAllocatedMemory calls in WebCoreStringResource are ...
Eric Seidel (no email)
Reported 2012-10-17 16:44:16 PDT
V8::AdjustAmountOfExternalAllocatedMemory calls in WebCoreStringResource are inaccurate The v8 API (according to api.cpp): intptr_t V8::AdjustAmountOfExternalAllocatedMemory(intptr_t change_in_bytes) { We're calling this function, assuming that AtomicString/String are take up 2 bytes per character: v8::V8::AdjustAmountOfExternalAllocatedMemory(2 * m_atomicString.length()); Which is wrong... In many ways. Especially in the context of 8-bit strings, or even just the fact that strings are shared? But I'm not sure how much the accuracy of this reporting matters (if at all).
Attachments
Eric Seidel (no email)
Comment 1 2012-10-17 16:46:43 PDT
Or the fact that if m_plainString is already isAtomic() than m_atomicString is never causing any allocation. :)
Note You need to log in before you can comment on or make changes to this bug.