java 垃圾收集中的“伊甸园空间”名称起源
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5383256/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
'Eden space' name origin in Garbage Collection
提问by Ytsejammer
In Garbage Collection terminology, why is it called 'Eden Space'?
在垃圾收集术语中,为什么称为“伊甸空间”?
Just like that. I'm still getting familiar with the terminology and I cannot understand why it has such name.
就这样。我仍然熟悉这个术语,我不明白为什么它有这样的名字。
回答by biziclop
Eden space is where objects are created. Life for them is all happy but eventually they're chased out by a cherub into the wilderness of the young and later the old generation.
伊甸园空间是创建对象的地方。他们的生活都很幸福,但最终他们被一个小天使赶到了年轻一代和后来的老一代的荒野中。
They are never allowed back in Eden space, they have to stay in the rough world of continuous tenuring until the Grim Collector comes for them.
他们永远不会被允许回到伊甸园空间,他们必须留在连续任期的粗糙世界中,直到冷酷的收藏家来找他们。
However, unlike the original Eden, it is possible to die there. Well, I guess all metaphors break down under closer scrutiny.
但是,与原始伊甸园不同的是,它可能会死在那里。好吧,我想所有的比喻在仔细下都会崩溃。
回答by nmichaels
It's an allusion to the garden of Eden. It's also called "creation space." Adam and Eve were, according to Genesis, put in Eden. When they ate the fruit from the tree of knowledge, they were kicked out of the garden.
这是对伊甸园的典故。它也被称为“创造空间”。根据创世记,亚当和夏娃被安置在伊甸园。他们吃了知识树上的果子,就被赶出园子。
回答by Brian Roach
New objects are allocated memory in the Eden Space memory pool (as in created in Eden)
新对象在 Eden Space 内存池中分配内存(如在 Eden 中创建)
If they live long enough, they get kicked out.
如果他们活得够久,就会被赶出去。