RFR (XS): 8238229: Remove TRACESPINNING debug code
Stefan Johansson
stefan.johansson at oracle.com
Thu Jan 30 15:24:09 UTC 2020
Looks good,
StefanJ
On 2020-01-30 12:56, Thomas Schatzl wrote:
> Hi all,
>
> can I have reviews for this removal of some debug code in the
> TaskTerminator class?
>
> The code counts the total number of yields/peeks/spins during task
> termination. Since it is guarded by a define, the code is not included
> in any regular build, so there is potential for bit-rotting.
>
> Since the code is not very complicated (and I believe it is too simple
> for real measurements), and needs rebuild anyway for use I propose to
> just remove it instead of trying to improve it for unknown requirements.
>
> Based on JDK-8238220.
>
> CR:
> https://bugs.openjdk.java.net/browse/JDK-8238229
> Webrev:
> http://cr.openjdk.java.net/~tschatzl/8238229/webrev/
I agree that this can be removed, and there is even more code that
should go. The call from each collected heap:
src/hotspot/share/gc/shared/genCollectedHeap.cpp:680:#ifdef TRACESPINNING
src/hotspot/share/gc/parallel/psParallelCompact.cpp:1972:#ifdef
TRACESPINNING
src/hotspot/share/gc/parallel/psScavenge.cpp:734:#ifdef TRACESPINNING
src/hotspot/share/gc/g1/g1CollectedHeap.cpp:1135:#ifdef TRACESPINNING
src/hotspot/share/gc/g1/g1CollectedHeap.cpp:3143:#ifdef TRACESPINNING
Otherwise, looks good,
StefanJ
> Testing:
> local compilation
>
> Thanks,
> Thomas
More information about the hotspot-gc-dev
mailing list