上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 164 下一页

2020年12月25日

摘要: root@ubuntu:~# gdb firecracker /data1/core/core.53227 GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git Copyright (C) 2018 Free Software Foundation, 阅读全文
posted @ 2020-12-25 10:12 tycoon3 阅读(141) 评论(0) 推荐(0)
摘要: $ gdb --configuration 这个GDB配置如下:配置--host = x86_64-apple-darwin13.1.0 --target = x86_64-apple-darwin13.1.0 --with-auto-load-dir =:$ {prefix} / share / 阅读全文
posted @ 2020-12-25 10:10 tycoon3 阅读(362) 评论(0) 推荐(0)
摘要: git clone https://github.com/firecracker-microvm/firecracker git checkout tags/v0.10.1 [root@bogon firecracker]# ls api_server CHANGELOG.md devices du 阅读全文
posted @ 2020-12-25 09:16 tycoon3 阅读(316) 评论(0) 推荐(0)

2020年12月24日

摘要: https://pkg.go.dev/gvisor.dev/gvisor@v0.0.0-20201222062610-620de250a48a?tab=versions https://cloud-atlas.readthedocs.io/zh_CN/latest/kubernetes/virtua 阅读全文
posted @ 2020-12-24 19:54 tycoon3 阅读(883) 评论(0) 推荐(0)
摘要: gVisor gVisor is a user-space kernel, written in Go, that implements a substantial portion of the Linux system surface. gVisor uses linux OS, but the 阅读全文
posted @ 2020-12-24 19:26 tycoon3 阅读(143) 评论(0) 推荐(0)
摘要: Deref <T> trait用于自定义解除引用运算符(*)的行为。如果实现Deref <T>特征,则可以将智能指针视为参考。 因此,在引用上工作的代码也可以用在智能指针上。 常规引用 常规引用是一种指向某个值的指针,该值存储在其他地方。下面来看一个简单的例子来创建i32类型值的引用,然后使用引用运 阅读全文
posted @ 2020-12-24 17:57 tycoon3 阅读(456) 评论(0) 推荐(0)
摘要: cat src/main.rs // 生命周期 `'a` 和 `'b`。这两个生命周期都必须至少要和 `print_refs` // 函数的一样长。 fn print_refs<'a, 'b>(x: &'a i32, y: &'b i32) { println!("x is {} and y is 阅读全文
posted @ 2020-12-24 17:43 tycoon3 阅读(83) 评论(0) 推荐(0)
摘要: // 此函数取倒堆分配的内存的所有权 fn destroy_box(c: Box<i32>) { println!("Destroying a box that contains {}", c); // `c` 被销毁且内存得到释放 } fn main() { // 栈分配的整型 let x = 5 阅读全文
posted @ 2020-12-24 17:20 tycoon3 阅读(237) 评论(0) 推荐(0)
摘要: Drop Drop trait 只有一个方法:drop,当一个对象离开作用域时会自动调用该方法。Drop trait 的主要作用是释放实现者实例拥有的资源。 Box,Vec,String,File,以及 Process 是一些实现了 Drop trait 来释放资源的类型的例子。Drop trait 阅读全文
posted @ 2020-12-24 17:10 tycoon3 阅读(199) 评论(0) 推荐(0)
摘要: 变量绑定默认是不可变的,但加上 mut 修饰语后变量就可以改变。 fn main() { let _immutable_binding = 1; let mut mutable_binding = 1; println!("Before mutation: {}", mutable_binding) 阅读全文
posted @ 2020-12-24 17:03 tycoon3 阅读(198) 评论(0) 推荐(0)
上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 164 下一页

导航