RFR(M): 8006683: Add WhiteBox API to testing of compiler
Vladimir Kozlov
vladimir.kozlov at oracle.com
Wed Jan 30 11:53:13 PST 2013
Igor,
I agree with Mikael to give different name to test.
Calls to get info in VM looks fine to me. Could you also add call to get
compilation level code->comp_level() of compiled code?
Do we plan to add more WB tests later as separate *.java tests or we
keep only one CompilerWhiteBoxTest.java and update it?
Thanks,
Vladimir
On 1/29/13 12:31 PM, Igor Ignatyev wrote:
> Hi all,
>
> Please review the patch
>
> 1. added new functions to WhiteBox:
> public native void deoptimizeAll();
> public native boolean isMethodCompiled(Method method);
> public native boolean isMethodCompilable(Method method);
> public native boolean isMethodQueuedForCompilation(Method method);
> public native int deoptimizeMethod(Method method);
> public native boolean setDontInlineMethod(Method method, boolean value);
> public native int getCompileQueuesSize();
>
> 2. added test 'test/compiler/WBApiTest.java' which exercises these
> functions
>
> 3. added result type to macro WB_METHOD_DECLARE
>
> webrev: http://cr.openjdk.java.net/~vlivanov/8006683/webrev.00/
More information about the hotspot-compiler-dev
mailing list