This Heap Be Witness 这石堆作证据
Can you tell how many jin of apples there are in this heap?
你估一估这堆苹果有几斤。
This heap dump can be generated automatically when the JVM runs out of memory or crashes.
此堆转储可在JVM用尽内存或崩溃时自动生成。
And Laban said to Jacob, behold this heap, and behold this pillar, which I have cast betwixt me and thee.
拉班又说,你看我在你我中间所立的这石堆和柱子。
This is the heap somewhere else in memory, but they are, in fact, in distinct locations.
这是内存中的堆,但实际上,它们在不同的地方。
So, conceptually if you've ever wondered why you get access in all of your functions to global variables that's because they're not down here, they're at the very top of RAM and any function can access that RAM way up there, but for now the interesting player in the story is this thing called the heap.
所以,如果你想知道为什么全局变量能在,所有的函数中使用,那是因为它们不在这下面,而是在内存的顶端,那样任意函数都可以在内存中使用它们,现在,这里面一个有用的角色是,叫做堆的东西。
I store in s1 the address of the first byte that the user typed in and by the way that first bite happens to live in this new place called the heap and that's the only update to the story thus far.
我在s1中存储的是用户输入的字符串的首地址,这样第一个字节存储在这块,新的堆的地方,这个是唯一的修正。
应用推荐