Disable code flushing for native SharedFunctionInfo.

R=hpayer@google.com
TEST=cctest/test-api/Threading4

Review URL: https://codereview.chromium.org/15018012

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14577 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
mstarzinger@chromium.org 2013-05-07 15:18:01 +00:00
parent b15bbfbe39
commit b2f6d7843a

View File

@ -571,6 +571,12 @@ bool StaticMarkingVisitor<StaticVisitor>::IsFlushable(
return false;
}
// If this is a native function we do not flush the code because %SetCode
// breaks the one-to-one relation between SharedFunctionInfo and Code.
if (shared_info->native()) {
return false;
}
if (FLAG_age_code) {
return shared_info->code()->IsOld();
} else {