manualgc icon indicating copy to clipboard operation
manualgc copied to clipboard

cache_flush中的return语句

Open GoogleCodeExporter opened this issue 10 years ago • 0 comments

在cache_flush函数中,有
while (...) {
   // ...
   if (parent==-1) {
       return;
   }
   // ...
}
E.cache_dirty=false;

cache_dirty应该是当前是否存在cache或cache是否flush 
out的标记位吧。
那这里的return应该是break吧?
在cache 
nodes未完全时,while循环就会遇到parent=-1,如果这里直接
return,E.cache_dirty=true不会执行,虽然当前的cache 
nodes已全部被flush out了。



Original issue reported on code.google.com by [email protected] on 4 May 2009 at 8:51

GoogleCodeExporter avatar Mar 25 '15 02:03 GoogleCodeExporter