Checkpoint switching to per-process locks, in attempt clarify xv6's

locking plan, which is a difficult to understand because ptable lock
protects many invariants.  This implementation has a bug: once in a
while xv6 unlocks a proc lock that is locked by another core.
This commit is contained in:
Frans Kaashoek 2019-07-02 09:14:47 -04:00
parent 535ac52efa
commit 67702cf706
12 changed files with 139 additions and 85 deletions

View file

@ -4,6 +4,7 @@
#include "date.h"
#include "param.h"
#include "memlayout.h"
#include "spinlock.h"
#include "proc.h"
int