Bug 476177 - TM: cx->stackPool must not be accessed on trace. r=brendan.

This commit is contained in:
Jason Orendorff
2009-01-30 17:40:05 -06:00
parent 865d411fcd
commit 5b0a24c8d7
20 changed files with 92 additions and 60 deletions

View File

@@ -4110,6 +4110,7 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb, JSOp nextop)
tmp = (TableEntry *)
JS_malloc(cx, (size_t)j * sizeof *table);
if (tmp) {
VOUCH_DOES_NOT_REQUIRE_STACK();
ok = js_MergeSort(table, (size_t)j, sizeof(TableEntry),
CompareOffsets, NULL, tmp);
JS_free(cx, tmp);