Skip to content

Commit 23dacb8

Browse files
committed
More macro name changes
1 parent 48f7306 commit 23dacb8

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const void* VMStructs::_interpreted_frame_valid_end = NULL;
110110

111111
// Initialize type size to 0
112112
#define INIT_TYPE_SIZE(name, ...) uint64_t VMStructs::TYPE_SIZE_NAME(name) = 0;
113-
DECL_TYPES_DO(INIT_TYPE_SIZE)
113+
DECLARE_TYPES_DO(INIT_TYPE_SIZE)
114114
#undef INIT_TYPE_SIZE
115115

116116

@@ -428,7 +428,7 @@ void VMStructs::initOffsets() {
428428
#define TYPE_SIZE_MATCH(name, ...) \
429429
if (initTypeSize(VMStructs::TYPE_SIZE_NAME(name), type, size, ##__VA_ARGS__)) continue;
430430

431-
DECL_TYPES_DO(TYPE_SIZE_MATCH)
431+
DECLARE_TYPES_DO(TYPE_SIZE_MATCH)
432432

433433
#undef TYPE_SIZE_MATCH
434434

ddprof-lib/src/main/cpp/vmStructs.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ inline T* cast_to(const void* ptr) {
4343

4444
// Defines a type and its matching symbols in vmStructs.
4545
// A type may match multiple names in different JVM versions.
46-
#define DECL_TYPES_DO(f) \
46+
#define DECLARE_TYPES_DO(f) \
4747
f(VMClassLoaderData, MATCH_SYMBOLS("ClassLoaderData")) \
4848
f(VMConstantPool, MATCH_SYMBOLS("ConstantPool")) \
4949
f(VMConstMethod, MATCH_SYMBOLS("ConstMethod")) \
@@ -156,12 +156,12 @@ class VMStructs {
156156
static const void* _interpreted_frame_valid_end;
157157

158158
// Declare type size variables
159-
#define DECL_TYPE_SIZE_VAR(name, ...) \
159+
#define DECLARE_TYPE_SIZE_VAR(name, ...) \
160160
static uint64_t TYPE_SIZE_NAME(name);
161161

162-
DECL_TYPES_DO(DECL_TYPE_SIZE_VAR)
162+
DECLARE_TYPES_DO(DECLARE_TYPE_SIZE_VAR)
163163

164-
#undef DECL_TYPE_SIZE_VAR
164+
#undef DECLARE_TYPE_SIZE_VAR
165165

166166

167167
static jfieldID _eetop;

0 commit comments

Comments
 (0)