Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8287493

32-bit Windows build failure in codeBlob.cpp after JDK-8283689

XMLWordPrintable

    • b26

      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 {

            shade Aleksey Shipilev
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: