vm: faster zone::contains_p()

Slava Pestov 2009-10-06 06:47:56 -05:00
parent 6f1217dab6
commit 39f4be940f
1 changed files with 1 additions and 1 deletions

View File

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