Hello everybody. Here I am trying to optimize Hotspot JDK 7. You guys
know hotspot schedule hot methods whose usage frequency is higher than
a fixed threshold through a FIFO queue for Just-In-Time compilation. I
am trying to enhance this method with dynamic threshold and priority
queues. I have already done some modifications. I have two problems. <br>
First, I need to trace the queue of methods that are scheduled for JIT
compilations and see and compare my new policy with the default. How
can I trace and log methods that are queue for JIT compilation?<br>
<br>
Second, I am trying to add to constants in through the file,
src/share/vm/opto/c2_globals.hpp in order to use in my implementations
for instance in file src/share/vm/oops/methodOop.hpp. But while making
the hotpsot, compiler produce error that these identifiers are not
defined. I think this is due to my way of building. Please let me know
how I should add these identifiers and build hotspot.<br>
<br>
product(intx, CICompilerQueueType,
1,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
\<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;Compiler Queue
Algorithm to
use&quot;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
\<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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