句柄范围只能是在栈上分配的,不能通过new来分配。
Handle scopes can only be stack-allocated, not allocated with new.
这些栈都是从操作系统分配给Domino的2 GB内存中分配的,因此Domino 6可以支持的NRPC用户的数量就限制为3000。
These stacks are allocated from the 2 GB of memory that the operating system gives Domino, thereby limiting the number of NRPC users Domino 6 can support to 3000.
就像你知道的那样,值类型是分配在栈上的,而引用类型是分配在GC堆上的。
As you know value types are allocated on the stack unlike reference types which are allocated on the GC heap.
So, certainly the CS50 Library designed to be dynamic and, in fact, any time you call get string, we are, in fact, ; allocating a chunk of RAM but it's not coming from the stack; it's actually coming from this portion of memory called the heap.
所以,Cs50库是动态设计的,实际上,每次你调用GetSting时,我们分配一块内存,但它不是来自栈;,而是来自于叫做堆的,内存的一部分。
应用推荐