vm: faster zone::contains_p()
parent
8fcd6a3789
commit
2311891910
|
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue