JDK-8287493 : 32-bit Windows build failure in codeBlob.cpp after JDK-8283689
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 19
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-05-28
  • Updated: 2022-06-20
  • Resolved: 2022-06-09
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 19
19 b26Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
Windows 32-bit, Visual Studio 2022, build issue since the integration of JEP 424 + follow other changes.

[2022-05-28T14:46:39,915Z] t:\workspace\open\src\hotspot\share\code\codeBlob.cpp(753): error C2956: usual deallocation function 'void operator delete(void *,size_t) throw()' would be chosen as placement deallocation function.
[2022-05-28T14:46:39,915Z] predefined C++ types (compiler internal)(44): note: see declaration of 'operator delete'
[2022-05-28T14:46:39,931Z] lib/CompileJvm.gmk:146: recipe for target '/cygdrive/t/workspace/build/windows-x86/hotspot/variant-server/libjvm/objs/codeBlob.obj' failed
[2022-05-28T14:46:39,931Z] make[3]: *** [/cygdrive/t/workspace/build/windows-x86/hotspot/variant-server/libjvm/objs/codeBlob.obj] Error 1
[2022-05-28T14:46:39,931Z] make[3]: *** Waiting for unfinished jobs....


Several blobs already use this workaround:

diff --git a/src/hotspot/share/code/codeBlob.hpp b/src/hotspot/share/code/codeBlob.hpp
index 38051bf325b..16a44ac49f1 100644
--- a/src/hotspot/share/code/codeBlob.hpp
+++ b/src/hotspot/share/code/codeBlob.hpp
@@ -767,6 +767,7 @@ class UpcallStub: public RuntimeBlob {
                      intptr_t exception_handler_offset,
                      jobject receiver, ByteSize frame_data_offset);

+  void operator delete(void* p);
   void* operator new(size_t s, unsigned size) throw();

   struct FrameData {

Comments
Changeset: aa2fc54b Author: Aleksey Shipilev <shade@openjdk.org> Date: 2022-06-09 05:49:39 +0000 URL: https://git.openjdk.java.net/jdk/commit/aa2fc54b61ad84cc6faa80efa3bd3097adbbc422
09-06-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/9088 Date: 2022-06-08 16:50:22 +0000
08-06-2022

ILW = build failure, Windows 32-bit only?, no workaround = MMH = P3
03-06-2022