[WIP/RFC] Pointer indirection #196

Merged
pks-t merged 15 commits from pointer-indirection into master 2015-05-30 15:23:23 -05:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 0a336e4abd - Show all commits

View File

@ -23,7 +23,7 @@ func NewHandleList() *HandleList {
// findUnusedSlot finds the smallest-index empty space in our
// list. You must only run this function while holding a write lock.
func (v *HandleList) findUnusedSlot() uintptr {
for i := 0; i < len(v.handles); i++ {
for i := 1; i < len(v.handles); i++ {
isUsed := v.set[uintptr(i)]
if !isUsed {
return uintptr(i)