-
1.
公开(公告)号:US20140095812A1
公开(公告)日:2014-04-03
申请号:US13631851
申请日:2012-09-28
Applicant: APPLE INC.
Inventor: Jonathan G. McLachan , Julien Lerouge , Nicholas T. Sullivan
CPC classification number: G06F12/023 , G06F8/41 , G06F21/14 , G06F21/54 , G06F21/79 , G06F2212/1052 , G06F2221/2107
Abstract: In one embodiment, a system wide static global stack pool in a contiguous range of random access memory is generated, a block of memory in the system global pool is assigned to a thread of a running process, and the thread stores local variable information in static global stack pool, such that the local variable is hidden from a stack frame back-trace. In one embodiment, a dynamically allocated data structure in system heap memory is generated, the data structure is locked to ensure atomic access, a block of memory in the data structure is assigned to a thread of a process, the data structure is unlocked, and the thread stores local variable information in static global stack pool, such that the local variable is hidden from a stack frame back-trace.
Abstract translation: 在一个实施例中,生成在随机访问存储器的连续范围内的系统范围的静态全局堆栈池,系统全局池中的存储器块被分配给运行进程的线程,并且线程将局部变量信息存储在静态 全局堆栈池,使局部变量从堆栈框架的后跟踪中隐藏。 在一个实施例中,生成系统堆存储器中的动态分配的数据结构,数据结构被锁定以确保原子访问,数据结构中的存储器块被分配给进程的线程,数据结构被解锁,以及 该线程将局部变量信息存储在静态全局堆栈池中,从而使局部变量从堆栈帧后跟中隐藏起来。