The GCbasher si a GC stress test that create a lot of different objects and 
arrays.

It would be makes sense to update it to create a lot of different value classes 
and arrays of value types. It helps to ensure that GC works with different type 
of classes.

Please, note that after this fix GCbasher is going to enable preview always. 
Do we want to keep original test while value classes are still preview feature? 
I think that it is not needed, however if someone thinks it is good idea, I can 
add gcbasher-nopreview and keep until we start removing `@enablePreview` from 
our tests.

In the long term the problem might be that some structure are flattened, and 
test start generating less objects. However they are much more diverse now.

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

Commit messages:
 - 8379695: [lworld] Update GCBasher to use value classes

Changes: https://git.openjdk.org/valhalla/pull/2215/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2215&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8379695
  Stats: 108 lines in 13 files changed: 18 ins; 47 del; 43 mod
  Patch: https://git.openjdk.org/valhalla/pull/2215.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2215/head:pull/2215

PR: https://git.openjdk.org/valhalla/pull/2215

Reply via email to