Skip to content

Commit f4428e8

Browse files
Cesar Soares LucasDavid Holmes
authored andcommitted
8352920: Compilation failure: comparison of unsigned expression >= 0 is always true
Reviewed-by: dholmes
1 parent d5b12c8 commit f4428e8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/hotspot/share/interpreter/bytecodeTracer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ class BytecodePrinter {
178178
}
179179
};
180180

181+
#ifndef PRODUCT
181182
// We need a global instance to keep track of the states when the bytecodes
182183
// are executed. Access by multiple threads are controlled by ttyLocker.
183184
static BytecodePrinter _interpreter_printer;
@@ -193,6 +194,7 @@ void BytecodeTracer::trace_interpreter(const methodHandle& method, address bcp,
193194
_interpreter_printer.trace(method, bcp, tos, tos2, st);
194195
}
195196
}
197+
#endif
196198

197199
void BytecodeTracer::print_method_codes(const methodHandle& method, int from, int to, outputStream* st, int flags) {
198200
BytecodePrinter method_printer(flags);

src/hotspot/share/interpreter/bytecodeTracer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class outputStream;
3838
class BytecodeClosure;
3939
class BytecodeTracer: AllStatic {
4040
public:
41-
static void trace_interpreter(const methodHandle& method, address bcp, uintptr_t tos, uintptr_t tos2, outputStream* st = tty);
41+
NOT_PRODUCT(static void trace_interpreter(const methodHandle& method, address bcp, uintptr_t tos, uintptr_t tos2, outputStream* st = tty);)
4242
static void print_method_codes(const methodHandle& method, int from, int to, outputStream* st, int flags);
4343
};
4444

0 commit comments

Comments
 (0)