Bug 1134515 - Ensure SPSBaselineOSRMarker checks pseudostack size properly. r=shu

This commit is contained in:
Kannan Vijayan 2015-03-12 12:13:16 -04:00
parent 80a8e79f1f
commit a8b6d60cdd

View File

@ -358,7 +358,9 @@ SPSBaselineOSRMarker::SPSBaselineOSRMarker(JSRuntime *rt, bool hasSPSFrame
: profiler(&rt->spsProfiler)
{
MOZ_GUARD_OBJECT_NOTIFIER_INIT;
if (!hasSPSFrame || !profiler->enabled()) {
if (!hasSPSFrame || !profiler->enabled() ||
profiler->size() >= profiler->maxSize())
{
profiler = nullptr;
return;
}