[9] RFR(S): 8153514: Whitebox API should allow compilation of <clinit>

Tobias Hartmann tobias.hartmann at oracle.com
Thu Apr 7 06:13:06 UTC 2016

Thanks, Vladimir.

Best regards,

On 06.04.2016 18:50, Vladimir Kozlov wrote:
> Looks good.
> Thanks,
> Vladimir
> On 4/6/16 3:53 AM, Tobias Hartmann wrote:
>> Hi,
>> please review the following patch that adds support to the Whitebox API to compile the static initializer of a class:
>> https://bugs.openjdk.java.net/browse/JDK-8153514
>> http://cr.openjdk.java.net/~thartmann/8153514/webrev.root.00/
>> http://cr.openjdk.java.net/~thartmann/8153514/webrev.00/
>> The static initializer is not accessible through reflection and can therefore not be compiled by using the existing WhiteBox::enqueueMethodForCompilation feature.
>> I did not add tests for the new feature because that would require implementing additional methods to check for a successful <clinit> compilation (or parsing the log compilation output). The feature will be exercised by JDK-8153515 which should be enough for testing.
>> Thanks,
>> Tobias

More information about the hotspot-compiler-dev mailing list