JDK-8244489 : Zero and minimal VM build failure after JDK-8241071 (MetaspaceShared::symbol_space_alloc is undefined)
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-05-05
  • Updated: 2020-05-11
  • Resolved: 2020-05-06
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 b22Fixed
Related Reports
Relates :  
Description
* Symptom
```
jdk/src/hotspot/share/oops/symbol.cpp:69: undefined reference to `MetaspaceShared::symbol_space_alloc(unsigned long)'
collect2: error: ld returned 1 exit status
```

* It might be fixed by
```
diff -r 1cfd2ca0b769 src/hotspot/share/memory/metaspaceShared.hpp
--- a/src/hotspot/share/memory/metaspaceShared.hpp      Tue May 05 11:10:02 2020 -0700
+++ b/src/hotspot/share/memory/metaspaceShared.hpp      Wed May 06 07:05:32 2020 +0800
@@ -309,7 +309,7 @@
 #endif
 
   // Allocate a block of memory from the temporary "symbol" region.
-  static char* symbol_space_alloc(size_t num_bytes);
+  static char* symbol_space_alloc(size_t num_bytes) NOT_CDS_RETURN_(NULL);
 
   // Allocate a block of memory from the "mc" or "ro" regions.
   static char* misc_code_space_alloc(size_t num_bytes);
```
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/69629f96e7fc User: jiefu Date: 2020-05-06 01:00:33 +0000
06-05-2020