RFR (S) 8218151: Simplify JavaThread::thread_state definition
David Holmes
david.holmes at oracle.com
Fri Feb 1 05:10:04 UTC 2019
Hi Aleksey,
Looks good.
Having both variants in the same place makes much more sense - even if
it does make the difference of opinion on how _thread_state should be
accessed more blatant :)
Thanks,
David
On 1/02/2019 7:13 am, Aleksey Shipilev wrote:
> RFE:
> https://bugs.openjdk.java.net/browse/JDK-8218151
>
> Fix:
> http://cr.openjdk.java.net/~shade/8218151/webrev.01/
>
> The difference in definitions in JavaThread::thread_state in AArch64 and PPC64 is the source of
> frequent build failures when someone tests only x86_64, see the linked issues for a taste. The way
> out of this is to push the #if-s inside the method body, so that definition is always in one place,
> and would not accidentally break the build.
>
> Testing: Linux {x86_64, x86_32, aarch64, arm32, ppc64el, s390x} builds, Mac OS X {x86_64} build,
> Windows {x86_64} build, jdk-submit (failed windows test and macos build, but I suspect there are
> infra problems, will wait and re-run; see for example mach5-one-shade-JDK-8218151-20190131-1631-233989).
>
> Thanks,
> -Aleksey
>
More information about the hotspot-dev
mailing list