<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
David.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks. Seems that you're right.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In the JDK9 stack they seem to have struck onto a different formula. Let us know if you have that one too or also.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Kthxbye,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Mr. Rupplin</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
/sr software developer<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> David Buck <david.buck@oracle.com><br>
<b>Sent:</b> Saturday, July 21, 2018 9:10 PM<br>
<b>To:</b> mr rupplin<br>
<b>Cc:</b> hotspot-gc-dev@openjdk.java.net<br>
<b>Subject:</b> Re: JDK Memory Allocation</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi Max!<br>
<br>
Your question does not seem to be related to building OpenJDK, so I have <br>
BCCed build-dev from the thread and added gc-dev. That said, I am not <br>
sure any of the development lists are really an ideal place to ask <br>
general "code walk through" questions.<br>
<br>
If really necessary, memAllocator.cpp [0] would probably be as good a <br>
place as any to start reading the source code. But unless you intend to <br>
hack on the JVM itself, trying to read this source code may not be the <br>
most productive use of your time. You may get a lot more out of reading <br>
some of the wikis [1], blogs [2], and books [3][4] that cover the <br>
HotSpot JVM in detail. Even if you ultimately chose to read the source <br>
code directly, reading these other types of resources first should <br>
really help you make better sense of what you see in the source code.<br>
<br>
Cheers,<br>
-Buck<br>
<br>
[0] <br>
<a href="http://hg.openjdk.java.net/jdk/jdk/file/b0fcf59be391/src/hotspot/share/gc/shared/memAllocator.cpp">http://hg.openjdk.java.net/jdk/jdk/file/b0fcf59be391/src/hotspot/share/gc/shared/memAllocator.cpp</a><br>
[1] <a href="https://wiki.openjdk.java.net/display/HotSpot/Main">https://wiki.openjdk.java.net/display/HotSpot/Main</a><br>
[2] <a href="https://shipilev.net/jvm-anatomy-park/">https://shipilev.net/jvm-anatomy-park/</a><br>
[3] <a href="https://www.goodreads.com/book/show/13227108-java-performance">https://www.goodreads.com/book/show/13227108-java-performance</a><br>
[4] <a href="https://www.goodreads.com/book/show/23316035-java-performance-companion">
https://www.goodreads.com/book/show/23316035-java-performance-companion</a><br>
<br>
On 2018/07/22 8:51, mr rupplin wrote:<br>
> Having looked for some while at the OpenJDK source code I am unable to find where the memory allocation occurs. I will be working very much with the JDK and would like to get a firm grasp on its underlying mechanisms.<br>
> <br>
> public class JustAsk<br>
> {<br>
> public static void main(String...args)<br>
> {<br>
> for(int i=0; i<100; i++)<br>
> {<br>
> new JustAsk();<br>
> }<br>
> }<br>
> }<br>
> <br>
> This doesn't seem to rely on any of the functions in the libjli nor of the jni.h. So clearly where do we look for the handler here?<br>
> <br>
> Thanks,<br>
> <br>
> Your friend Max<br>
> <br>
</div>
</span></font></div>
</body>
</html>