Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jvm-garbage-collection.md #2652

Closed
wants to merge 1 commit into from

Conversation

Huang-Yijing
Copy link
Contributor

“元空间使用的是直接内存” -> 应更正为本地内存

“元空间使用的是直接内存” -> 应更正为本地内存
@Snailclimb
Copy link
Owner

“元空间使用的是直接内存” -> 应更正为本地内存

《深入理解Java虚拟机》:直接内存(Direct Memory) 并不是虚拟机运行时数据区的一部分,也不是《Java虚拟机规范》中定义的内存区域。

  • 直接内存是由本地内存分配的,因此直接内存受本机总内存大小的限制。
  • 堆外内存:把内存对象分配在Java虚拟机堆以外的内存
  • 堆外内存直接受操作系统管理(而不是虚拟机),这样做的结果就是能够在一定程度上减少垃圾回收(GC)对应用程序造成的影响。
  • 在一些文章中将直接内存等价于堆外内存。

@Snailclimb Snailclimb closed this Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants