8286891: thread_local causes undefined symbol error with XL C

Reviewed-by: mdoerr, mbaesken, jvernee
This commit is contained in:
Tyler Steele 2022-05-24 16:24:35 +00:00 committed by Martin Doerr
parent a10c5597d9
commit 25080e0c3a

View File

@ -47,6 +47,7 @@ extern struct JavaVM_ main_vm;
struct UpcallContext {
Thread* attachedThread;
UpcallContext() {} // Explicit constructor to address XL C compiler bug.
~UpcallContext() {
if (attachedThread != NULL) {
JavaVM_ *vm = (JavaVM *)(&main_vm);