Skip to content

Commit ca216ba

Browse files
committed
8255810: Zero: build fails without JVMTI
Reviewed-by: coleenp
1 parent d47336b commit ca216ba

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/hotspot/share/runtime/vmStructs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,8 +1964,8 @@ typedef HashtableEntry<InstanceKlass*, mtClass> KlassHashtableEntry;
19641964
declare_integer_type(AccessFlags) /* FIXME: wrong type (not integer) */\
19651965
declare_toplevel_type(address) /* FIXME: should this be an integer type? */\
19661966
declare_integer_type(BasicType) /* FIXME: wrong type (not integer) */ \
1967-
declare_toplevel_type(BreakpointInfo) \
1968-
declare_toplevel_type(BreakpointInfo*) \
1967+
JVMTI_ONLY(declare_toplevel_type(BreakpointInfo)) \
1968+
JVMTI_ONLY(declare_toplevel_type(BreakpointInfo*)) \
19691969
declare_toplevel_type(CodeBlob*) \
19701970
declare_toplevel_type(RuntimeBlob*) \
19711971
declare_toplevel_type(CompressedWriteStream*) \

src/hotspot/share/services/diagnosticCommand.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ void JVMTIDataDumpDCmd::execute(DCmdSource source, TRAPS) {
304304
}
305305

306306
#if INCLUDE_SERVICES
307+
#if INCLUDE_JVMTI
307308
JVMTIAgentLoadDCmd::JVMTIAgentLoadDCmd(outputStream* output, bool heap) :
308309
DCmdWithParser(output, heap),
309310
_libpath("library path", "Absolute path of the JVMTI agent to load.",
@@ -363,6 +364,7 @@ int JVMTIAgentLoadDCmd::num_arguments() {
363364
return 0;
364365
}
365366
}
367+
#endif // INCLUDE_JVMTI
366368
#endif // INCLUDE_SERVICES
367369

368370
void PrintSystemPropertiesDCmd::execute(DCmdSource source, TRAPS) {

0 commit comments

Comments
 (0)