Here is the key part of a trace-malloc snapshot with 1.4GB allocated. Almost all of the memory is created through nsXMLHttpRequest::ConvertBodyToText, which I believe is called to access the property |requestText|.
What I don't understand is why the nsAStrings returned by ConvertBodyToText are not freed in XPCWrappedNative::CallMethod after the call. Who would know about this?
Here is the key part of a trace-malloc snapshot with 1.4GB allocated. Almost all of the memory is created through nsXMLHttpReques t::ConvertBodyT oText, which I believe is called to access the property |requestText|.
What I don't understand is why the nsAStrings returned by ConvertBodyToText are not freed in XPCWrappedNativ e::CallMethod after the call. Who would know about this?
1411376623 malloc libSystem. B.dylib) libSystem. B.dylib) internal: :MutatePrep( unsigned int, unsigned short**, unsigned int*) (pldhash.c:)
1376865590 nsAString_ internal: :ReplacePrep( unsigned int, unsigned int, unsigned int) (pldhash.c:)
1376853800 nsAString_ internal: :Assign( unsigned short const*, unsigned int) (pldhash.c:)
1376771840 nsXMLHttpReques t::ConvertBodyT oText(nsAString _internal& ) (nsUnicharUtils .cpp:)
1376771840 NS_InvokeByIndex_P (pldhash.c:)
1376771840 XPCWrappedNativ e::CallMethod( XPCCallContext& , XPCWrappedNativ e::CallMode) (/Users/ dmandelin/ sources/ tracemonkey/ obj-tm/ js/src/ xpconnect/ src/dom_ quickst
137677184 0 XPC_WN_ GetterSetter( JSContext* , JSObject*, unsigned int, long*, long*) (/Users/ dmandelin/ sources/ tracemonkey/ obj-tm/ js/src/ xpconnect/ src/dom_ quickstu
1376771840 js_Invoke (/Users/ dmandelin/ sources/ tracemonkey/ obj-tm/ js/src/ jsautokw. h:)
1376771840 js_InternalInvoke (/Users/ dmandelin/ sources/ tracemonkey/ obj-tm/ js/src/ jsautokw. h:)
1376771840 js_InternalGetOrSet (/Users/ dmandelin/ sources/ tracemonkey/ obj-tm/ js/src/ jsautokw. h:)
1376771840 js_NativeGet (/Users/ dmandelin/ sources/ tracemonkey/ obj-tm/ js/src/ jsautokw. h:)
1375691234 js_Interpret (/Users/ dmandelin/ sources/ tracemonkey/ obj-tm/ js/src/ jsautokw. h:)
1080606 js_GetPropertyH elper (/Users/ dmandelin/ sources/ tracemonkey/ obj-tm/ js/src/ jsautokw. h:)
1407026664 my_malloc_logger (pldhash.c:)
1394617050 malloc_zone_malloc (/usr/lib/
1393036801 malloc (/usr/lib/
1376888066 nsAString_
ubs.h:)
bs.h:)