vm: faster zone::contains_p()

db4
Slava Pestov 2009-10-06 06:47:56 -05:00
parent 8fcd6a3789
commit 2311891910
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ struct zone {
inline bool contains_p(object *pointer)
{
return (cell)pointer >= start && (cell)pointer < end;
return ((cell)pointer - start) < size;
}
};