JDK-8237752 : Minimal VM build fails after JDK-8236236
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-01-23
  • Updated: 2020-01-30
  • Resolved: 2020-01-23
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 b08Fixed
Related Reports
Relates :  
Description
```
* For target hotspot_variant-minimal_libjvm_objs_abstractInterpreter.o:
In file included from /Users/fool/workspace/open/jdk/src/hotspot/share/interpreter/abstractInterpreter.cpp:37:
/Users/fool/workspace/open/jdk/src/hotspot/share/memory/metaspaceShared.hpp:363:66: error: unknown type name 'DumpRegion'; did you mean 'MemRegion'?
  static void write_region(FileMapInfo* mapinfo, int region_idx, DumpRegion* dump_region,
                                                                 ^~~~~~~~~~
                                                                 MemRegion
/Users/fool/workspace/open/jdk/src/hotspot/share/memory/memRegion.hpp:43:7: note: 'MemRegion' declared here
class MemRegion {
      ^
1 error generated.
```

It might be fixed by
```
diff -r 36218eab4255 src/hotspot/share/memory/metaspaceShared.hpp
--- a/src/hotspot/share/memory/metaspaceShared.hpp      Wed Jan 22 20:07:49 2020 -0500
+++ b/src/hotspot/share/memory/metaspaceShared.hpp      Thu Jan 23 09:44:46 2020 +0800
@@ -360,8 +360,10 @@

   static void write_core_archive_regions(FileMapInfo* mapinfo);
 private:
+#if INCLUDE_CDS
   static void write_region(FileMapInfo* mapinfo, int region_idx, DumpRegion* dump_region,
                            bool read_only,  bool allow_exec);
+#endif
   static void read_extra_data(const char* filename, TRAPS) NOT_CDS_RETURN;
   static FileMapInfo* open_static_archive();
   static FileMapInfo* open_dynamic_archive();
```
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/134c76da87c9 User: dholmes Date: 2020-01-23 06:42:23 +0000
23-01-2020

RFR: https://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2020-January/037799.html
23-01-2020