GithubHelp home page GithubHelp logo

Comments (1)

zengjingfang avatar zengjingfang commented on July 28, 2024

第3章 内存优化

3.1 内存管理机制

  • 创建 按照父类到子类的static、成员变量 、代码行 的顺序进行创建对象,分配内存空间
  • 应用 对象被其他一个对象“强引用”,或者显式的声明其他引用
  • 不可见 对象的集合中找不到直接或者间接的引用,可能被某些静态变量持有
  • 不可达 不再被任何对象持有
  • 回收 垃圾回收器做好回收准备,此刻会回调finalize方法
  • 终结 执行完finalize方法,等待回收
  • 重新分配 进行回收,并重新分配空间,对象彻底消失

P 82: 访问本地变量由于访问类中的变量?

from androidbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.