Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Android堆转储包含有关运行方法和方法的本地参数的信息?方法参数是否存储在堆中?
该信息通常是堆栈的一部分,而不是堆。
堆包含所有动态分配的内存(例如对象、数组等)。
澄清一下:如果你将一个对象作为参数传递给一个方法,那么它的内容(即它的成员)将在堆中,但指向它的指针在堆栈中。