10 RFR: WhiteBox methods should throw an exception if used with inappropriate collector.
michail.chernov at oracle.com
Fri Mar 3 12:57:33 UTC 2017
Could I have a reviews for this change, please?
Whitebox.cpp has many methods which can cause to VM assertion failure
when they are used with inappropriate collector. For example -
WB_G1IsHumongous, WB_G1NumFreeRegions, etc.
There also several methods which throw RuntimeException when methods are
used with wrong collector (WB_PSHeapGenerationAlignment,
This change adds checking of collector which is used and throwing
RuntimeException when the method is used with wrong collector.
The change was tested - all gc tests pass with this change with
More information about the hotspot-gc-dev