8352920: Compilation failure: comparison of unsigned expression >= 0 is always true

Reviewed-by: dholmes
This commit is contained in:
Cesar Soares Lucas 2025-03-28 04:50:39 +00:00 committed by David Holmes
parent d5b12c82fe
commit f4428e89b7
2 changed files with 3 additions and 1 deletions

View File

@ -178,6 +178,7 @@ class BytecodePrinter {
}
};
#ifndef PRODUCT
// We need a global instance to keep track of the states when the bytecodes
// are executed. Access by multiple threads are controlled by ttyLocker.
static BytecodePrinter _interpreter_printer;
@ -193,6 +194,7 @@ void BytecodeTracer::trace_interpreter(const methodHandle& method, address bcp,
_interpreter_printer.trace(method, bcp, tos, tos2, st);
}
}
#endif
void BytecodeTracer::print_method_codes(const methodHandle& method, int from, int to, outputStream* st, int flags) {
BytecodePrinter method_printer(flags);

View File

@ -38,7 +38,7 @@ class outputStream;
class BytecodeClosure;
class BytecodeTracer: AllStatic {
public:
static void trace_interpreter(const methodHandle& method, address bcp, uintptr_t tos, uintptr_t tos2, outputStream* st = tty);
NOT_PRODUCT(static void trace_interpreter(const methodHandle& method, address bcp, uintptr_t tos, uintptr_t tos2, outputStream* st = tty);)
static void print_method_codes(const methodHandle& method, int from, int to, outputStream* st, int flags);
};