About automatic memory management for Java

Source: Internet
Author: User
  1. What is a virtual machine?

    It is the software that simulates the architecture of a certain computer and executes a specific set of instructions. For example: VMware

    The JVM is a process virtual machine, and he does not emulate the operation of an operating system. Just provide a specific set of instructions.

    In the Java Virtual Machine specification, you define the areas in which different types of data are stored during the run of a program.

  2. Partition of the run-time data area.

Program counter Java heap Java Virtual machine stack local method stack method area

Program counter: A small amount of memory space whose function can be seen as the line number indicator of the byte code executed by the current thread.

It is thread-private, if the execution of a Java method, then the counter record is the address of their own instructions, if the native method then the value of the counter is empty.

Local method Stack: Thread-Private, LIFO, the function is to support the call of the native method, execution exits. OutOfMemoryError and Stackoverflowerror exceptions may occur.

About automatic memory management for Java

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.