openbsd-ports/www/seamonkey/patches/patch-mozilla_js_src_jscntxt_cpp
landry c34d58f59f Update to seamonkey 2.8. (and enigmail 1.4/lightning 1.3b1)
- Fixes MFSA 2012-12->19
- see http://www.seamonkey-project.org/releases/seamonkey2.8/
- complete patchset for #691898, still fixes build on ppc (and hopefully
commited in firefox 14...)
- add patchset from #706955, workarounds #669050 (xpcshell hangs during
make install and chokes on CSPUtils.csm, threads related..)
- remove obsolete/commited patches
2012-03-16 21:38:33 +00:00

52 lines
1.6 KiB
Plaintext

$OpenBSD: patch-mozilla_js_src_jscntxt_cpp,v 1.1 2012/03/16 21:38:33 landry Exp $
--- mozilla/js/src/jscntxt.cpp.orig Tue Mar 13 03:43:15 2012
+++ mozilla/js/src/jscntxt.cpp Wed Mar 14 22:27:51 2012
@@ -106,7 +106,9 @@ ThreadData::ThreadData(JSRuntime *rt)
#endif
waiveGCQuota(false),
tempLifoAlloc(TEMP_LIFO_ALLOC_PRIMARY_CHUNK_SIZE),
+#if ENABLE_ASSEMBLER
execAlloc(NULL),
+#endif
bumpAlloc(NULL),
repCache(NULL),
dtoaState(NULL),
@@ -123,7 +125,9 @@ ThreadData::~ThreadData()
{
JS_ASSERT(!repCache);
+#if ENABLE_ASSEMBLER
rt->delete_<JSC::ExecutableAllocator>(execAlloc);
+#endif
rt->delete_<WTF::BumpPointerAllocator>(bumpAlloc);
if (dtoaState)
@@ -157,9 +161,11 @@ ThreadData::sizeOfExcludingThis(JSMallocSizeOfFun mall
*temporary = tempLifoAlloc.sizeOfExcludingThis(mallocSizeOf);
size_t method = 0, regexp = 0, unused = 0;
+#if ENABLE_ASSEMBLER
if (execAlloc)
execAlloc->sizeOfCode(&method, &regexp, &unused);
JS_ASSERT(method == 0); /* this execAlloc is only used for regexp code */
+#endif
*regexpCode = regexp + unused;
*stackCommitted = stackSpace.sizeOfCommitted();
@@ -188,6 +194,7 @@ ThreadData::triggerOperationCallback(JSRuntime *rt)
#endif
}
+#if ENABLE_ASSEMBLER
JSC::ExecutableAllocator *
ThreadData::createExecutableAllocator(JSContext *cx)
{
@@ -199,6 +206,7 @@ ThreadData::createExecutableAllocator(JSContext *cx)
js_ReportOutOfMemory(cx);
return execAlloc;
}
+#endif
WTF::BumpPointerAllocator *
ThreadData::createBumpPointerAllocator(JSContext *cx)