NOTE
How Objects Are Located
Java can locate objects through direct pointers. These notes compare object-access approaches and examine references when garbage collection moves objects.
This is a historical learning note and may contain outdated or incomplete understanding.
- Oracle JDK and OpenJDK use direct pointers. The advantage is fast access; the disadvantage is that if garbage collection moves surviving objects, the pointers need to be updated.
Drag to pan, scroll to zoom, and click a node to expand or collapse it. Large maps start with deeper levels collapsed; click nodes to expand them.
Discussion
Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub