The two basic aspects of this problem are checking memory corruption and tracing block allocation and release.
两个基本角度是检查内存越界和跟踪内存块分配和释放。
Chunks are not otherwise tracked by address, so unless arbitrarily limited, checking might lead to random searches through memory.
如果块不是地址被跟踪,除非任意性被限制,检查可能导致在内存上进行随机搜索。
You could consider these "thread-local" copies of variables to be similar to a cache, helping the thread avoid checking main memory each time it needs to access the variable's value.
您可以将变量的这些“线程局部”副本看作是与缓存类似,在每次线程需要访问变量的值时帮助它避免检查主存储器。
应用推荐