RFR(S): 8132723, 8132724: Add tests which check that soft/weak references to humongous objects should work correctly
kirill.zhaldybin at oracle.com
Wed Nov 25 17:16:46 UTC 2015
I found an issue on fastdebug build - an assert due missing type cast.
(wasn't changed comparing previous one)
( added type casts in whitebox methods).
On 24.11.2015 22:05, Kirill Zhaldybin wrote:
> Could you please review the following patch that adds a test that checks
> that soft/weak references to humongous objects work correctly?
> The test checks that weak and soft references behave correspondingly
> to actual object behavior:
> 1. If an object is collected a weak/soft reference .get() should
> return null.
> 2. If an object is not collected a weak/soft reference .get() should
> not return null.
> Two White Box API methods were added:
> 1. g1BelongsToHumongousRegion which checks that address belongs to
> humongous region
> 2. g1BelongsToFreeRegion which checks that address belongs to free region
> These methods do not impact G1 performance/stability since they don't
> change anything in G1 execution.
> The only used method from gc/testlibrary is waitTillCMCFinished, which
> is under review here -
> CR: https://bugs.openjdk.java.net/browse/JDK-8132723
> Thank you.
> Regards, Kirill
More information about the hotspot-gc-dev