Skip to content

Commit 186a93d

Browse files
[mq] [skip ddci] working branch - merge 57aca28 on top of main at 684769c
{"baseBranch":"main","baseCommit":"684769c9785295e4a721811d6879b80e44af847d","createdAt":"2026-07-08T09:41:35.373449Z","headSha":"57aca28c1a74330fccd1fb41f21bef2d98ab6128","id":"d7ee49c7-4afa-4500-92d2-02790337a98e","priority":"200","pullRequestNumber":"641","queuedAt":"2026-07-08T09:41:35.372715Z","status":"STATUS_QUEUED"}
2 parents 9e7f2f5 + 57aca28 commit 186a93d

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

ddprof-lib/src/main/cpp/hotspot/hotspotStackFrame_aarch64.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
#include <string.h>
1010
#include "hotspot/hotspotStackFrame.h"
11+
// The VMNMethod accessors used below are inline in vmStructs.h and assert via crashProtectionActive()
12+
// / cast_to(), both of which are defined in vmStructs.inline.h. Without this include, assertion-enabled
13+
// builds (the gtest targets) leave those symbols unresolved at link time.
14+
#include "hotspot/vmStructs.inline.h"
1115

1216
static inline bool isSTP(instruction_t insn) {
1317
// stp xn, xm, [sp, #-imm]!

ddprof-lib/src/main/cpp/hotspot/hotspotStackFrame_x64.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
#include <string.h>
1010
#include "hotspot/hotspotStackFrame.h"
11+
// See the note in hotspotStackFrame_aarch64.cpp: the VMNMethod accessors need vmStructs.inline.h
12+
// for crashProtectionActive() / cast_to() so assertion-enabled builds link.
13+
#include "hotspot/vmStructs.inline.h"
1114

1215
__attribute__((no_sanitize("address"))) bool HotspotStackFrame::unwindStub(instruction_t* entry, const char* name, uintptr_t& pc, uintptr_t& sp, uintptr_t& fp) {
1316
instruction_t* ip = (instruction_t*)pc;

ddprof-lib/src/main/cpp/vmEntry.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
#include "os.h"
1919
#include "profiler.h"
2020
#include "safeAccess.h"
21-
#include "hotspot/vmStructs.h"
21+
// Pulls in vmStructs.h plus the definitions of crashProtectionActive()/cast_to() that its inline
22+
// accessors odr-use here; the light vmStructs.h alone leaves those unresolved in assertion-enabled
23+
// builds (see the note in hotspotStackFrame_aarch64.cpp).
24+
#include "hotspot/vmStructs.inline.h"
2225
#include "hotspot/jitCodeCache.h"
2326
#include <atomic>
2427
#include <dlfcn.h>

0 commit comments

Comments
 (0)