8235934: gc/g1/TestGCLogMessages.java fails with 'DerivedPointerTable Update' found

Fix determining whether C2 or JVMCI are enabled in the test.

Reviewed-by: sjohanss, kbarrett
4 files changed