Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 764818 Details for
Bug 833098
dev-java/openjdk-11.0.14_p9-r1: linking libjvm.so fails: in function `G1CMOopClosure::do_oop(oopDesc**)': undefined reference to `void G1CMOopClosure::do_oop_work<oopDesc*>(oopDesc**)' (-flto -devirtualize-at-ltrans)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
openjdk-11-undefined-symbols.patch
openjdk-11-undefined-symbols.patch (text/plain), 3.22 KB, created by
Alexander Miller
on 2022-02-11 01:20:31 UTC
(
hide
)
Description:
openjdk-11-undefined-symbols.patch
Filename:
MIME Type:
Creator:
Alexander Miller
Created:
2022-02-11 01:20:31 UTC
Size:
3.22 KB
patch
obsolete
>Fixes the following linker errors (simplified): > ld: in function `G1CMOopClosure::do_oop(oopDesc**)': > undefined reference to `void G1CMOopClosure::do_oop_work<oopDesc*>(oopDesc**)' > ld: in function `G1CMOopClosure::do_oop(unsigned int*)': > undefined reference to `void G1CMOopClosure::do_oop_work<unsigned int>(unsigned int*)' > ld: in function `G1RootRegionScanClosure::do_oop(oopDesc**)': > undefined reference to `void G1RootRegionScanClosure::do_oop_work<oopDesc*>(oopDesc**)' > >This is probably caused by devirtualization adding calls to these >template functions--as undefined, when only the declaration is visible >in a compilation unit; and since the definitions are marked inline >they may be not emitted in other compilation units either. >There are more undefined symbols from the same missing #include in >some object files that happen to be emitted in others, but that may >change any time when the optimizer decides to inline them, too. >The full list is: > _ZN14G1CMOopClosure11do_oop_workIP7oopDescEEvPT_ > _ZN14G1CMOopClosure11do_oop_workIjEEvPT_ > _ZN22G1RebuildRemSetClosure11do_oop_workIP7oopDescEEvPT_ > _ZN22G1RebuildRemSetClosure11do_oop_workIjEEvPT_ > _ZN23G1RootRegionScanClosure11do_oop_workIP7oopDescEEvPT_ > _ZN23G1RootRegionScanClosure11do_oop_workIjEEvPT_ > _ZN25G1ScanEvacuatedObjClosure11do_oop_workIP7oopDescEEvPT_ > _ZN25G1ScanEvacuatedObjClosure11do_oop_workIjEEvPT_ > _ZN28G1ConcurrentRefineOopClosure11do_oop_workIP7oopDescEEvPT_ > _ZN28G1ConcurrentRefineOopClosure11do_oop_workIjEEvPT_ > _ZN29G1ScanObjsDuringScanRSClosure11do_oop_workIP7oopDescEEvPT_ > _ZN29G1ScanObjsDuringScanRSClosure11do_oop_workIjEEvPT_ > _ZN31G1ScanObjsDuringUpdateRSClosure11do_oop_workIP7oopDescEEvPT_ > _ZN31G1ScanObjsDuringUpdateRSClosure11do_oop_workIjEEvPT_ > >This patch adds the missing #include statement to pull in the >definitions of the functions listed above to the sources of the >objects where I found undefined references to these functions. > >Signed-off-by: Alexander Miller <alex.miller@gmx.de> > >--- jdk11u-jdk-11.0.14-ga/src/hotspot/share/gc/g1/g1CodeBlobClosure.cpp >+++ jdk11u-jdk-11.0.14-ga/src/hotspot/share/gc/g1/g1CodeBlobClosure.cpp >@@ -26,6 +26,7 @@ > #include "code/nmethod.hpp" > #include "gc/g1/g1CodeBlobClosure.hpp" > #include "gc/g1/g1CollectedHeap.inline.hpp" >+#include "gc/g1/g1OopClosures.inline.hpp" > #include "gc/g1/heapRegion.hpp" > #include "gc/g1/heapRegionRemSet.hpp" > #include "oops/access.inline.hpp" >--- jdk11u-jdk-11.0.14-ga/src/hotspot/share/gc/g1/g1HeapVerifier.cpp >+++ jdk11u-jdk-11.0.14-ga/src/hotspot/share/gc/g1/g1HeapVerifier.cpp >@@ -28,6 +28,7 @@ > #include "gc/g1/g1CollectedHeap.inline.hpp" > #include "gc/g1/g1ConcurrentMarkThread.hpp" > #include "gc/g1/g1HeapVerifier.hpp" >+#include "gc/g1/g1OopClosures.inline.hpp" > #include "gc/g1/g1Policy.hpp" > #include "gc/g1/g1RemSet.hpp" > #include "gc/g1/g1RootProcessor.hpp" >--- jdk11u-jdk-11.0.14-ga/src/hotspot/share/gc/g1/g1StringDedupQueue.cpp >+++ jdk11u-jdk-11.0.14-ga/src/hotspot/share/gc/g1/g1StringDedupQueue.cpp >@@ -25,6 +25,7 @@ > #include "precompiled.hpp" > #include "classfile/javaClasses.inline.hpp" > #include "gc/g1/g1CollectedHeap.hpp" >+#include "gc/g1/g1OopClosures.inline.hpp" > #include "gc/g1/g1StringDedup.hpp" > #include "gc/g1/g1StringDedupQueue.hpp" > #include "logging/log.hpp"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 833098
: 764818