gvisor/runsc/boot
Adin Scannell 753da9604e Remove map from fd_map, change to fd_table.
This renames FDMap to FDTable and drops the kernel.FD type, which had an entire
package to itself and didn't serve much use (it was freely cast between types,
and served as more of an annoyance than providing any protection.)

Based on BenchmarkFDLookupAndDecRef-12, we can expect 5-10 ns per lookup
operation, and 10-15 ns per concurrent lookup operation of savings.

This also fixes two tangential usage issues with the FDMap. Namely, non-atomic
use of NewFDFrom and associated calls to Remove (that are both racy and fail to
drop the reference on the underlying file.)

PiperOrigin-RevId: 256285890
2019-07-02 19:28:59 -07:00
..
filter runsc: allow openat for runsc-race 2019-06-28 11:49:45 -07:00
BUILD Remove map from fd_map, change to fd_table. 2019-07-02 19:28:59 -07:00
compat.go Update canonical repository. 2019-06-13 16:50:15 -07:00
compat_amd64.go Update canonical repository. 2019-06-13 16:50:15 -07:00
compat_test.go Update canonical repository. 2019-06-13 16:50:15 -07:00
config.go Update canonical repository. 2019-06-13 16:50:15 -07:00
controller.go Allow to change logging options using 'runsc debug' 2019-06-24 15:03:02 -07:00
debug.go Update canonical repository. 2019-06-13 16:50:15 -07:00
events.go Update canonical repository. 2019-06-13 16:50:15 -07:00
fds.go Remove map from fd_map, change to fd_table. 2019-07-02 19:28:59 -07:00
fs.go Remove map from fd_map, change to fd_table. 2019-07-02 19:28:59 -07:00
fs_test.go Add support to mount pod shared tmpfs mounts 2019-06-11 14:54:31 -07:00
limits.go Update canonical repository. 2019-06-13 16:50:15 -07:00
loader.go Remove map from fd_map, change to fd_table. 2019-07-02 19:28:59 -07:00
loader_test.go fsgopher: reopen files via /proc/self/fd 2019-06-24 21:44:27 -07:00
network.go Update canonical repository. 2019-06-13 16:50:15 -07:00
pprof.go gvisor/runsc: apply seccomp filters before parsing a state file 2019-06-12 11:55:24 -07:00
strace.go Update canonical repository. 2019-06-13 16:50:15 -07:00
user.go Update canonical repository. 2019-06-13 16:50:15 -07:00
user_test.go Update canonical repository. 2019-06-13 16:50:15 -07:00