JDK-8242265 : serviceability/sa/ClhsdbScanOops.java fails due to bad @requires expression
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2020-04-07
  • Updated: 2020-04-15
  • Resolved: 2020-04-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 15
15 b18Fixed
Related Reports
Relates :  
Description
Currently the jtreg test  serviceability/sa/ClhsdbScanOops.java fails with :

test result: Error. Parse Exception: Syntax error in @requires expression: invalid name: vm.gc.ParallelGC

test result: Error. Parse Exception: Syntax error in @requires expression: invalid name: vm.gc.SerialGC
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/65de4935d51a User: cjplummer Date: 2020-04-08 19:04:40 +0000
08-04-2020

I figured out why we don't see this in our testing. It's problem listed on the platforms we support. I just removed this test from the problem list a few minutes ago to test out a fix, and now I see this same failure.
08-04-2020

We switched to a newer version of jreg within the past few weeks. Perhaps it treats undefined symbols as "false" and the previous version did not.
07-04-2020

I assume this was introduced by JDK-8240698. It looks like it should be: * @requires vm.gc.Parallel * @requires vm.gc.Serial In other words, drop the "GC" at the end. What I'm not sure of it why we never see this in our mach5 testing.
07-04-2020