-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: None
-
Component/s: hotspot
-
Environment:
gcc-13 13.2.0-13 armhf (Debian 13 armhf)
commit 1733d2ea244756238c302d802511eb1557cd46ac (HEAD -> master, origin/master, origin/HEAD)
Date: Wed Jan 31 14:18:13 2024 +0000
-
arm
In file included from src/hotspot/share/memory/allocation.hpp:29,
from src/hotspot/share/memory/arena.hpp:28,
from src/hotspot/share/runtime/handles.hpp:28,
from src/hotspot/share/code/oopRecorder.hpp:28,
from src/hotspot/share/asm/codeBuffer.hpp:28,
from src/hotspot/share/asm/assembler.hpp:28,
from src/hotspot/share/asm/assembler.inline.hpp:28,
from src/hotspot/cpu/arm/vtableStubs_arm.cpp:26:
src/hotspot/cpu/arm/vtableStubs_arm.cpp: In static member function 'static VtableStub* VtableStubs::create_vtable_stub(int)':
src/hotspot/cpu/arm/vtableStubs_arm.cpp:76:57: error: 'this' pointer is null [-Werror=nonnull]
76 | assert(VtableStub::receiver_location() == R0->as_VMReg(), "receiver expected in R0");
src/hotspot/share/utilities/debug.hpp:118:80: note: in definition of macro 'VMASSERT_CHECK_PASSED'
118 | ((! __builtin_is_constant_evaluated() && DebuggingContext::is_enabled()) || (p))
| ^
src/hotspot/share/utilities/debug.hpp:160:24: note: in expansion of macro 'vmassert'
160 | #define assert(p, ...) vmassert(p, __VA_ARGS__)
| ^~~~~~~~
src/hotspot/cpu/arm/vtableStubs_arm.cpp:76:3: note: in expansion of macro 'assert'
76 | assert(VtableStub::receiver_location() == R0->as_VMReg(), "receiver expected in R0");
| ^~~~~~
It could be some static const class instance which will get optimized properly.
from src/hotspot/share/memory/arena.hpp:28,
from src/hotspot/share/runtime/handles.hpp:28,
from src/hotspot/share/code/oopRecorder.hpp:28,
from src/hotspot/share/asm/codeBuffer.hpp:28,
from src/hotspot/share/asm/assembler.hpp:28,
from src/hotspot/share/asm/assembler.inline.hpp:28,
from src/hotspot/cpu/arm/vtableStubs_arm.cpp:26:
src/hotspot/cpu/arm/vtableStubs_arm.cpp: In static member function 'static VtableStub* VtableStubs::create_vtable_stub(int)':
src/hotspot/cpu/arm/vtableStubs_arm.cpp:76:57: error: 'this' pointer is null [-Werror=nonnull]
76 | assert(VtableStub::receiver_location() == R0->as_VMReg(), "receiver expected in R0");
src/hotspot/share/utilities/debug.hpp:118:80: note: in definition of macro 'VMASSERT_CHECK_PASSED'
118 | ((! __builtin_is_constant_evaluated() && DebuggingContext::is_enabled()) || (p))
| ^
src/hotspot/share/utilities/debug.hpp:160:24: note: in expansion of macro 'vmassert'
160 | #define assert(p, ...) vmassert(p, __VA_ARGS__)
| ^~~~~~~~
src/hotspot/cpu/arm/vtableStubs_arm.cpp:76:3: note: in expansion of macro 'assert'
76 | assert(VtableStub::receiver_location() == R0->as_VMReg(), "receiver expected in R0");
| ^~~~~~
It could be some static const class instance which will get optimized properly.