* Made vm_page::state private and added accessor methods.
* Added kernel tracing for page state transitions. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35538 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -105,7 +105,9 @@ public:
|
||||
vint32 accessing_thread;
|
||||
#endif
|
||||
|
||||
private:
|
||||
uint8 state : 3;
|
||||
public:
|
||||
bool busy : 1;
|
||||
bool busy_writing : 1;
|
||||
// used in VMAnonymousCache::Merge()
|
||||
@@ -124,6 +126,10 @@ public:
|
||||
|
||||
bool IsMapped() const
|
||||
{ return wired_count > 0 || !mappings.IsEmpty(); }
|
||||
|
||||
uint8 State() const { return state; }
|
||||
void InitState(uint8 newState);
|
||||
void SetState(uint8 newState);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user