RFR: 8292681: Add JMH for ProtectionDomain [v2]

Sean Mullan mullan at openjdk.org
Thu Aug 25 09:17:35 UTC 2022


On Wed, 24 Aug 2022 20:45:29 GMT, Eric Caspole <ecaspole at openjdk.org> wrote:

>> Add a JMH for ProtectionDomain related to current work on JDK-8292375. Also, add the InMemoryJavaCompiler to the JMH jar, to generate the classes needed for this test and will be useful for future class loading JMH too.
>
> Eric Caspole has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Updates from reviewers comments

test/micro/org/openjdk/bench/java/security/ProtectionDomainBench.java line 90:

> 88:         for (int i = 0; i < numberOfClasses; i++) {
> 89:             classNames[i] = "B" + i;
> 90:             compiledClasses[i] = InMemoryJavaCompiler.compile(classNames[i], B(i));

Is it possible to use the existing `jdk.test.lib.compiler.InMemoryJavaCompiler` class instead of writing a new one?

-------------

PR: https://git.openjdk.org/jdk/pull/9950



More information about the security-dev mailing list