Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
xv6-public
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸时代
OS Lab Group
奖励实验
xv6-public
提交
9214a77b
提交
9214a77b
4月 09, 2012
创建
作者:
David Benjamin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clarify pushing down
上级
8876a003
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
14 行增加
和
10 行删除
+14
-10
radix.hh
include/radix.hh
+14
-10
没有找到文件。
include/radix.hh
浏览文件 @
9214a77b
...
@@ -25,13 +25,15 @@ class radix_node;
...
@@ -25,13 +25,15 @@ class radix_node;
*
*
* A leaf is either a pointer to a radix_elem or null.
* A leaf is either a pointer to a radix_elem or null.
*
*
* It is always legal to take an unlocked leaf and replace it with a
* Before making semantic modifications to a range, the range must be
* pointer to a radix_node full of that leaf[*] ("push down"). Before
* making semantic modifications to a range, the range must be
* locked. This is done by locking the leaf pointers (be they to
* locked. This is done by locking the leaf pointers (be they to
* radix_entry or null) corresponding to that range. It is legal to
* radix_entry or null) corresponding to that range. If necessary, a
* push down any nodes necessary to do this, but ideally you'd only
* leaf may be "pushed down" and replaced with a pointer to radix_node
* push down as necessary to get the endpoints accurate.
* full of the old value to get the endpoints accurate. Locking NEVER
* happens higher level than the current set of leaves.
*
* We assuming that a thread attempting to push down a leaf is doing
* so to lock it.
*
*
* When replacing a range, we'd like to possibly retire old
* When replacing a range, we'd like to possibly retire old
* radix_nodes when their contents are all set to be the same. Before
* radix_nodes when their contents are all set to be the same. Before
...
@@ -43,11 +45,13 @@ class radix_node;
...
@@ -43,11 +45,13 @@ class radix_node;
*
*
* Races:
* Races:
*
*
* - If a leaf to be locked gets pushed down, lock the new radix_node
* - If a leaf to be locked (or pushed down) gets pushed down, lock
* at a more granular level.
* the new radix_node at a more granular level.
*
* - If a leaf to be locked (or pushed down) goes dead, restart
* everything from the root. Many values may have gone invalid.
*
*
* - If a leaf to be locked goes dead, restart everything from the
* - If a leaf to be locked (or pushed down) gets locked, spin.
* root. Many values may have gone invalid.
*
*
* [*] XXX: Try not to bounce on the radix_elem refcount too much.
* [*] XXX: Try not to bounce on the radix_elem refcount too much.
*/
*/
...
...
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论