From: mikhail.naganov@gmail.com Date: Wed, 27 Oct 2010 17:03:01 +0000 (+0000) Subject: Fix reporting of impossible nested calls of DOM functions. X-Git-Tag: upstream/4.7.83~21027 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a6c7033b271a615601047db63e5bf51d3994458;p=platform%2Fupstream%2Fv8.git Fix reporting of impossible nested calls of DOM functions. It turns out that having PC pointing _exactly_ at callback entry point is quite probable. BUG=crbug/60753 Review URL: http://codereview.chromium.org/4169005 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5721 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/log.cc b/src/log.cc index 2cc2b8f..d12aafb 100644 --- a/src/log.cc +++ b/src/log.cc @@ -164,7 +164,10 @@ void StackTracer::Trace(TickSample* sample) { int i = 0; const Address callback = VMState::external_callback(); - if (callback != NULL) { + // Surprisingly, PC can point _exactly_ to callback start, with good + // probability, and this will result in reporting fake nested + // callback call. + if (callback != NULL && callback != sample->pc) { sample->stack[i++] = callback; }