delphij's Chaos

Matthew Dillon's most recent VM work

• Kernel

From the commit log:

Close an interrupt race between vm_page_lookup() and (typically) a vm_page_sleep_busy() check by using the correct spl protection. An interrupt can occur inbetween the two operations and unbusy/free the page in question, causing the busy check to fail and for the code to fall through and then operate on a page that may have been freed and possibly even reused. Also note that vm_page_grab() had the same issue between the lookup, busy check, and vm_page_busy() call.

阅读全文… ( 本文约 229 字,阅读大致需要 2 分钟 )

传说中的「猴年马月」即将到来~

• Shared Chaos

来自车东的Blog上的这篇。

不知道是谁人的发明,用「猴年马月」来泛指不知道哪年哪月,或者泛指遥遥无期。其实猴年马月的周期性虽然未必都很整齐,但基本上是有规律的。猴年是12年一个轮回,马月也是12个月一个论回,所以凡是猴年,必有一个月是马月,比如与2004年大体相应的猴年(甲申年),其马月(庚午月)就是农历5月份,就是从公历2004年6月18日开始到7月16日结束,由于这一猴年的农历5月份是小月,只有29天,所以今年的马月比较短。

阅读全文… ( 本文约 246 字,阅读大致需要 1 分钟 )

gcc bug??

• Development

发现VC上面偶尔会用到的const_cast在gcc (c++)里面竟然不能用,郁闷,遂采用C-style cast,但我希望修正这个问题。

参与评论

动感地带

• Shared Chaos

有个学生爬墙出校,被校长抓到。
校长问他为什么不从校门走,他说:美特斯邦威,不走寻常路。
校长又问他这么高的墙怎么翻过去啊?他指了指裤子说:李宁,一切皆有可能。
校长又问他翻墙是什么感觉?他指了指鞋子说:特步,飞一般的感觉。

阅读全文… ( 本文约 253 字,阅读大致需要 1 分钟 )

Still alive :-)

• Diary Excerpt

For those who concerned about my absence here last night: I’m still alive, just tired and got to sleep early. Don’t worry about me, I am healthy and is having a good emotion :-)

参与评论

内鬼、Geek,以及其他

• Diary Excerpt

From Diary 20040511

我最讨厌的两种人:在朋友面前口是心非的人,内鬼。后者大抵可以归于前者,因为内鬼必然是一些在朋友面前口是心非的人。基本上我可以原谅一个人对我所做的任何事情,但唯独不包括背叛。

内鬼,内鬼,我恨内鬼!

阅读全文… ( 本文约 981 字,阅读大致需要 2 分钟 )

Got a FreeBSD 1.1.5.1-RELEASE tarball

• Kernel

By Google’ing the web I got a 1.1.5.1-RELEASE tarball. FreeBSD 1.x was based on Net/2 and the USL lawsuit has caused FreeBSD project to re-start from 4.4BSD-Lite2, and 1.1.5.1 was the last 1.x RELEASE permitted to be released.

阅读全文… ( 本文约 175 字,阅读大致需要 1 分钟 )