Make sure to flush the JIT cache after a gc even if we didn't import globals (464418, r=brendan, 2nd attempt to push).

This commit is contained in:
Andreas Gal 2008-11-17 01:20:54 -08:00
Родитель 47fc0b6b95
Коммит e8f1449645
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -2695,7 +2695,7 @@ static inline bool
js_CheckGlobalObjectShape(JSContext* cx, JSTraceMonitor* tm, JSObject* globalObj)
{
/* Check the global shape. */
if (tm->globalSlots->length() && (OBJ_SHAPE(globalObj) != tm->globalShape)) {
if (OBJ_SHAPE(globalObj) != tm->globalShape) {
AUDIT(globalShapeMismatchAtEntry);
debug_only_v(printf("Global shape mismatch (%u vs. %u), flushing cache.\n",
OBJ_SHAPE(globalObj), tm->globalShape);)