RFR: 8257423: [PPC64] Support -XX:-UseInlineCaches

Martin Doerr mdoerr at openjdk.java.net
Fri Dec 4 11:29:15 UTC 2020


On Fri, 4 Dec 2020 10:45:22 GMT, Richard Reingruber <rrich at openjdk.org> wrote:

>> The scratch emit is only executed during the first call. Afterwards, the computed_size is just returned and we don't call the CodeBuffer constructor any more.
>
> I just asked myself how this is thread safe then. Well it is not. The scratch emit ist executed at most once /per thread/ ;)

Interesting point. Right, it doesn't have to be thread safe. All threads which compute it concurrently will compute the same result.

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

PR: https://git.openjdk.java.net/jdk/pull/1521


More information about the hotspot-dev mailing list