[jdk16] RFR: 8257919: [JVMCI] profiling info didn't change after reprofile

Claes Redestad redestad at openjdk.java.net
Fri Dec 11 09:25:57 UTC 2020


On Fri, 11 Dec 2020 09:01:25 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:

> JDK-8252049 moved compiler counter initialization into MethodData constructor, but JVMCI and WhiteBox API rely on `MethodData::initialize()`/`MethodData::init()` to reset MDO state. 
> 
> Proposed fix restores the logic which resets the counters in `init()` (which is called from `initialize()`).
> 
> Testing:
> - [x] hs-precheckin-comp, hs-tier1, hs-tier2

I guess the compiler will outsmart the back-to-back initialization but for clarity maybe the `MethodData` constructor should now initialize `_compiler_counters` using the empty constructor?

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

PR: https://git.openjdk.java.net/jdk16/pull/6


More information about the hotspot-compiler-dev mailing list