JDK-8254348 : Build fails when cds is disabled after JDK-8247536
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-10-10
  • Updated: 2020-10-15
  • Resolved: 2020-10-10
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 16
16 b20Fixed
Related Reports
Relates :  
Description
# Reproduce
```
bash configure --disable-cds ...
```

# Symptom
```
* For target hotspot_variant-server_libjvm_objs_jvm.o:
./src/hotspot/share/prims/jvm.cpp:3872:41: error: use of undeclared identifier 'classlist_file'
  return DumpLoadedClassList != NULL && classlist_file != NULL && classlist_file->is_open();
                                        ^
./src/hotspot/share/prims/jvm.cpp:3872:67: error: use of undeclared identifier 'classlist_file'
  return DumpLoadedClassList != NULL && classlist_file != NULL && classlist_file->is_open();
                                                                  ^
2 errors generated.
```
Comments
Changeset: ec41046c Author: Jie Fu <jiefu@openjdk.org> Date: 2020-10-10 04:26:37 +0000 URL: https://git.openjdk.java.net/jdk/commit/ec41046c
10-10-2020

I have tested with --disable-cds-archive locally, very strange it did not trigger this failure.
10-10-2020