machine.go

 1// Copyright (C) 2016 Kohei YOSHIDA. All rights reserved.
 2//
 3// This program is free software; you can redistribute it and/or
 4// modify it under the terms of The BSD 3-Clause License
 5// that can be found in the LICENSE file.
 6
 7package uritemplate
 8
 9// threadList implements https://research.swtch.com/sparse.
10type threadList struct {
11	dense  []threadEntry
12	sparse []uint32
13}
14
15type threadEntry struct {
16	pc uint32
17	t  *thread
18}
19
20type thread struct {
21	op  *progOp
22	cap map[string][]int
23}