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.
也就是说,在 C 部分中请求 5 mb 的 malloc() 是否会因以下原因而失败:
第一个项目符号的答案是“否”——Xmx 指的是 Java 堆,任何本机分配都是完全独立的。
第二个项目的答案是“是” - 本机分配受操作系统和/或硬件固有的一般进程分配限制的约束。