Skip to content

Commit f47767f

Browse files
committed
8313882: Fix -Wconversion warnings in runtime code
Reviewed-by: pchilanomate, dlong, dholmes
1 parent 0cb9ab0 commit f47767f

26 files changed

+129
-135
lines changed

src/hotspot/share/interpreter/bytecode.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ class Bytecode_checkcast: public Bytecode {
274274
void verify() const { assert(Bytecodes::java_code(code()) == Bytecodes::_checkcast, "check checkcast"); }
275275

276276
// Returns index
277-
long index() const { return get_index_u2(Bytecodes::_checkcast); };
277+
u2 index() const { return get_index_u2(Bytecodes::_checkcast); };
278278
};
279279

280280
// Abstraction for instanceof
@@ -284,7 +284,7 @@ class Bytecode_instanceof: public Bytecode {
284284
void verify() const { assert(code() == Bytecodes::_instanceof, "check instanceof"); }
285285

286286
// Returns index
287-
long index() const { return get_index_u2(Bytecodes::_instanceof); };
287+
u2 index() const { return get_index_u2(Bytecodes::_instanceof); };
288288
};
289289

290290
class Bytecode_new: public Bytecode {
@@ -293,7 +293,7 @@ class Bytecode_new: public Bytecode {
293293
void verify() const { assert(java_code() == Bytecodes::_new, "check new"); }
294294

295295
// Returns index
296-
long index() const { return get_index_u2(Bytecodes::_new); };
296+
u2 index() const { return get_index_u2(Bytecodes::_new); };
297297
};
298298

299299
class Bytecode_multianewarray: public Bytecode {
@@ -302,7 +302,7 @@ class Bytecode_multianewarray: public Bytecode {
302302
void verify() const { assert(java_code() == Bytecodes::_multianewarray, "check new"); }
303303

304304
// Returns index
305-
long index() const { return get_index_u2(Bytecodes::_multianewarray); };
305+
u2 index() const { return get_index_u2(Bytecodes::_multianewarray); };
306306
};
307307

308308
class Bytecode_anewarray: public Bytecode {
@@ -311,7 +311,7 @@ class Bytecode_anewarray: public Bytecode {
311311
void verify() const { assert(java_code() == Bytecodes::_anewarray, "check anewarray"); }
312312

313313
// Returns index
314-
long index() const { return get_index_u2(Bytecodes::_anewarray); };
314+
u2 index() const { return get_index_u2(Bytecodes::_anewarray); };
315315
};
316316

317317
// Abstraction for ldc, ldc_w and ldc2_w

src/hotspot/share/jvmci/vmStructs_jvmci.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
nonstatic_field(JavaThread, _jni_environment, JNIEnv) \
216216
nonstatic_field(JavaThread, _poll_data, SafepointMechanism::ThreadData) \
217217
nonstatic_field(JavaThread, _stack_overflow_state._reserved_stack_activation, address) \
218-
nonstatic_field(JavaThread, _held_monitor_count, int64_t) \
218+
nonstatic_field(JavaThread, _held_monitor_count, intx) \
219219
JVMTI_ONLY(nonstatic_field(JavaThread, _is_in_VTMS_transition, bool)) \
220220
JVMTI_ONLY(nonstatic_field(JavaThread, _is_in_tmp_VTMS_transition, bool)) \
221221
\

src/hotspot/share/runtime/arguments.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ bool Arguments::process_settings_file(const char* file_name, bool should_exist,
11771177
bool in_white_space = true;
11781178
bool in_comment = false;
11791179
bool in_quote = false;
1180-
char quote_c = 0;
1180+
int quote_c = 0;
11811181
bool result = true;
11821182

11831183
int c = getc(stream);
@@ -1189,7 +1189,7 @@ bool Arguments::process_settings_file(const char* file_name, bool should_exist,
11891189
if (c == '#') in_comment = true;
11901190
else if (!isspace(c)) {
11911191
in_white_space = false;
1192-
token[pos++] = c;
1192+
token[pos++] = checked_cast<char>(c);
11931193
}
11941194
}
11951195
} else {
@@ -1209,7 +1209,7 @@ bool Arguments::process_settings_file(const char* file_name, bool should_exist,
12091209
} else if (in_quote && (c == quote_c)) {
12101210
in_quote = false;
12111211
} else {
1212-
token[pos++] = c;
1212+
token[pos++] = checked_cast<char>(c);
12131213
}
12141214
}
12151215
c = getc(stream);
@@ -1565,22 +1565,22 @@ void Arguments::set_heap_size() {
15651565
// Convert deprecated flags
15661566
if (FLAG_IS_DEFAULT(MaxRAMPercentage) &&
15671567
!FLAG_IS_DEFAULT(MaxRAMFraction))
1568-
MaxRAMPercentage = 100.0 / MaxRAMFraction;
1568+
MaxRAMPercentage = 100.0 / (double)MaxRAMFraction;
15691569

15701570
if (FLAG_IS_DEFAULT(MinRAMPercentage) &&
15711571
!FLAG_IS_DEFAULT(MinRAMFraction))
1572-
MinRAMPercentage = 100.0 / MinRAMFraction;
1572+
MinRAMPercentage = 100.0 / (double)MinRAMFraction;
15731573

15741574
if (FLAG_IS_DEFAULT(InitialRAMPercentage) &&
15751575
!FLAG_IS_DEFAULT(InitialRAMFraction))
1576-
InitialRAMPercentage = 100.0 / InitialRAMFraction;
1576+
InitialRAMPercentage = 100.0 / (double)InitialRAMFraction;
15771577

15781578
// If the maximum heap size has not been set with -Xmx,
15791579
// then set it as fraction of the size of physical memory,
15801580
// respecting the maximum and minimum sizes of the heap.
15811581
if (FLAG_IS_DEFAULT(MaxHeapSize)) {
1582-
julong reasonable_max = (julong)((phys_mem * MaxRAMPercentage) / 100);
1583-
const julong reasonable_min = (julong)((phys_mem * MinRAMPercentage) / 100);
1582+
julong reasonable_max = (julong)(((double)phys_mem * MaxRAMPercentage) / 100);
1583+
const julong reasonable_min = (julong)(((double)phys_mem * MinRAMPercentage) / 100);
15841584
if (reasonable_min < MaxHeapSize) {
15851585
// Small physical memory, so use a minimum fraction of it for the heap
15861586
reasonable_max = reasonable_min;
@@ -1664,7 +1664,7 @@ void Arguments::set_heap_size() {
16641664
reasonable_minimum = limit_heap_by_allocatable_memory(reasonable_minimum);
16651665

16661666
if (InitialHeapSize == 0) {
1667-
julong reasonable_initial = (julong)((phys_mem * InitialRAMPercentage) / 100);
1667+
julong reasonable_initial = (julong)(((double)phys_mem * InitialRAMPercentage) / 100);
16681668
reasonable_initial = limit_heap_by_allocatable_memory(reasonable_initial);
16691669

16701670
reasonable_initial = MAX3(reasonable_initial, reasonable_minimum, (julong)MinHeapSize);
@@ -1965,15 +1965,15 @@ static const char* system_assertion_options[] = {
19651965
"-dsa", "-esa", "-disablesystemassertions", "-enablesystemassertions", 0
19661966
};
19671967

1968-
bool Arguments::parse_uintx(const char* value,
1969-
uintx* uintx_arg,
1970-
uintx min_size) {
1971-
uintx n;
1968+
bool Arguments::parse_uint(const char* value,
1969+
uint* uint_arg,
1970+
uint min_size) {
1971+
uint n;
19721972
if (!parse_integer(value, &n)) {
19731973
return false;
19741974
}
19751975
if (n >= min_size) {
1976-
*uintx_arg = n;
1976+
*uint_arg = n;
19771977
return true;
19781978
} else {
19791979
return false;
@@ -2728,8 +2728,8 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args, bool* patch_m
27282728
return JNI_EINVAL;
27292729
}
27302730
} else if (match_option(option, "-XX:MaxTenuringThreshold=", &tail)) {
2731-
uintx max_tenuring_thresh = 0;
2732-
if (!parse_uintx(tail, &max_tenuring_thresh, 0)) {
2731+
uint max_tenuring_thresh = 0;
2732+
if (!parse_uint(tail, &max_tenuring_thresh, 0)) {
27332733
jio_fprintf(defaultStream::error_stream(),
27342734
"Improperly specified VM option \'MaxTenuringThreshold=%s\'\n", tail);
27352735
return JNI_EINVAL;

src/hotspot/share/runtime/arguments.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,10 @@ class Arguments : AllStatic {
378378
static jint parse(const JavaVMInitArgs* args);
379379
// Parse a string for a unsigned integer. Returns true if value
380380
// is an unsigned integer greater than or equal to the minimum
381-
// parameter passed and returns the value in uintx_arg. Returns
382-
// false otherwise, with uintx_arg undefined.
383-
static bool parse_uintx(const char* value, uintx* uintx_arg,
384-
uintx min_size);
381+
// parameter passed and returns the value in uint_arg. Returns
382+
// false otherwise, with uint_arg undefined.
383+
static bool parse_uint(const char* value, uint* uintx_arg,
384+
uint min_size);
385385
// Apply ergonomics
386386
static jint apply_ergo();
387387
// Adjusts the arguments after the OS have adjusted the arguments

src/hotspot/share/runtime/continuationFreezeThaw.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ class FreezeBase : public StackObj {
404404
// slow path
405405
virtual stackChunkOop allocate_chunk_slow(size_t stack_size) = 0;
406406

407-
int cont_size() { return _cont_stack_bottom - _cont_stack_top; }
407+
int cont_size() { return pointer_delta_as_int(_cont_stack_bottom, _cont_stack_top); }
408408

409409
private:
410410
// slow path
@@ -1064,7 +1064,7 @@ NOINLINE freeze_result FreezeBase::recurse_freeze_interpreted_frame(frame& f, fr
10641064
// The frame's top never includes the stack arguments to the callee
10651065
intptr_t* const stack_frame_top = ContinuationHelper::InterpretedFrame::frame_top(f, callee_argsize, callee_interpreted);
10661066
intptr_t* const stack_frame_bottom = ContinuationHelper::InterpretedFrame::frame_bottom(f);
1067-
const int fsize = stack_frame_bottom - stack_frame_top;
1067+
const int fsize = pointer_delta_as_int(stack_frame_bottom, stack_frame_top);
10681068

10691069
DEBUG_ONLY(verify_frame_top(f, stack_frame_top));
10701070

@@ -1123,7 +1123,7 @@ freeze_result FreezeBase::recurse_freeze_compiled_frame(frame& f, frame& caller,
11231123
intptr_t* const stack_frame_bottom = ContinuationHelper::CompiledFrame::frame_bottom(f);
11241124
// including metadata between f and its stackargs
11251125
const int argsize = ContinuationHelper::CompiledFrame::stack_argsize(f) + frame::metadata_words_at_top;
1126-
const int fsize = stack_frame_bottom + argsize - stack_frame_top;
1126+
const int fsize = pointer_delta_as_int(stack_frame_bottom + argsize, stack_frame_top);
11271127

11281128
log_develop_trace(continuations)("recurse_freeze_compiled_frame %s _size: %d fsize: %d argsize: %d",
11291129
ContinuationHelper::Frame::frame_method(f) != nullptr ?
@@ -1627,7 +1627,7 @@ static freeze_result is_pinned0(JavaThread* thread, oop cont_scope, bool safepoi
16271627
if (scope == cont_scope) {
16281628
break;
16291629
}
1630-
int monitor_count = entry->parent_held_monitor_count();
1630+
intx monitor_count = entry->parent_held_monitor_count();
16311631
entry = entry->parent();
16321632
if (entry == nullptr) {
16331633
break;
@@ -2068,7 +2068,7 @@ void ThawBase::finalize_thaw(frame& entry, int argsize) {
20682068
}
20692069
assert(_stream.is_done() == chunk->is_empty(), "");
20702070

2071-
int total_thawed = _stream.unextended_sp() - _top_unextended_sp_before_thaw;
2071+
int total_thawed = pointer_delta_as_int(_stream.unextended_sp(), _top_unextended_sp_before_thaw);
20722072
chunk->set_max_thawing_size(chunk->max_thawing_size() - total_thawed);
20732073

20742074
_cont.set_argsize(argsize);
@@ -2154,7 +2154,7 @@ NOINLINE void ThawBase::recurse_thaw_interpreted_frame(const frame& hf, frame& c
21542154
assert(hf.is_heap_frame(), "should be");
21552155
assert(!f.is_heap_frame(), "should not be");
21562156

2157-
const int fsize = heap_frame_bottom - heap_frame_top;
2157+
const int fsize = pointer_delta_as_int(heap_frame_bottom, heap_frame_top);
21582158
assert((stack_frame_bottom == stack_frame_top + fsize), "");
21592159

21602160
// Some architectures (like AArch64/PPC64/RISC-V) add padding between the locals and the fixed_frame to keep the fp 16-byte-aligned.

src/hotspot/share/runtime/deoptimization.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,11 @@ Deoptimization::UnrollBlock::~UnrollBlock() {
248248

249249
int Deoptimization::UnrollBlock::size_of_frames() const {
250250
// Account first for the adjustment of the initial frame
251-
int result = _caller_adjustment;
251+
intptr_t result = _caller_adjustment;
252252
for (int index = 0; index < number_of_frames(); index++) {
253253
result += frame_sizes()[index];
254254
}
255-
return result;
255+
return checked_cast<int>(result);
256256
}
257257

258258
void Deoptimization::UnrollBlock::print() {
@@ -1081,7 +1081,7 @@ template<typename PrimitiveType, typename CacheType, typename BoxType> class Box
10811081
objArrayOop cache = CacheType::cache(ik);
10821082
assert(cache->length() > 0, "Empty cache");
10831083
_low = BoxType::value(cache->obj_at(0));
1084-
_high = _low + cache->length() - 1;
1084+
_high = checked_cast<PrimitiveType>(_low + cache->length() - 1);
10851085
_cache = JNIHandles::make_global(Handle(thread, cache));
10861086
}
10871087
}
@@ -1100,7 +1100,7 @@ template<typename PrimitiveType, typename CacheType, typename BoxType> class Box
11001100
}
11011101
oop lookup(PrimitiveType value) {
11021102
if (_low <= value && value <= _high) {
1103-
int offset = value - _low;
1103+
int offset = checked_cast<int>(value - _low);
11041104
return objArrayOop(JNIHandles::resolve_non_null(_cache))->obj_at(offset);
11051105
}
11061106
return nullptr;
@@ -1654,7 +1654,7 @@ vframeArray* Deoptimization::create_vframeArray(JavaThread* thread, frame fr, Re
16541654
// stuff a C2I adapter we can properly fill in the callee-save
16551655
// register locations.
16561656
frame caller = fr.sender(reg_map);
1657-
int frame_size = caller.sp() - fr.sp();
1657+
int frame_size = pointer_delta_as_int(caller.sp(), fr.sp());
16581658

16591659
frame sender = caller;
16601660

src/hotspot/share/runtime/globals.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,10 +726,10 @@ const int ObjectAlignmentInBytes = 8;
726726
/* because of overflow issue */ \
727727
product(intx, MonitorDeflationMax, 1000000, DIAGNOSTIC, \
728728
"The maximum number of monitors to deflate, unlink and delete " \
729-
"at one time (minimum is 1024).") \
729+
"at one time (minimum is 1024).") \
730730
range(1024, max_jint) \
731731
\
732-
product(intx, MonitorUsedDeflationThreshold, 90, DIAGNOSTIC, \
732+
product(int, MonitorUsedDeflationThreshold, 90, DIAGNOSTIC, \
733733
"Percentage of used monitors before triggering deflation (0 is " \
734734
"off). The check is performed on GuaranteedSafepointInterval, " \
735735
"AsyncDeflationInterval or GuaranteedAsyncDeflationInterval, " \

src/hotspot/share/runtime/java.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,16 +204,17 @@ void print_method_invocation_histogram() {
204204
total = int_total + comp_total;
205205
special_total = final_total + static_total +synch_total + native_total + access_total;
206206
tty->print_cr("Invocations summary for %d methods:", collected_invoked_methods->length());
207+
double total_div = (double)total;
207208
tty->print_cr("\t" UINT64_FORMAT_W(12) " (100%%) total", total);
208-
tty->print_cr("\t" UINT64_FORMAT_W(12) " (%4.1f%%) |- interpreted", int_total, 100.0 * int_total / total);
209-
tty->print_cr("\t" UINT64_FORMAT_W(12) " (%4.1f%%) |- compiled", comp_total, 100.0 * comp_total / total);
209+
tty->print_cr("\t" UINT64_FORMAT_W(12) " (%4.1f%%) |- interpreted", int_total, 100.0 * (double)int_total / total_div);
210+
tty->print_cr("\t" UINT64_FORMAT_W(12) " (%4.1f%%) |- compiled", comp_total, 100.0 * (double)comp_total / total_div);
210211
tty->print_cr("\t" UINT64_FORMAT_W(12) " (%4.1f%%) |- special methods (interpreted and compiled)",
211-
special_total, 100.0 * special_total/ total);
212-
tty->print_cr("\t" UINT64_FORMAT_W(12) " (%4.1f%%) |- synchronized",synch_total, 100.0 * synch_total / total);
213-
tty->print_cr("\t" UINT64_FORMAT_W(12) " (%4.1f%%) |- final", final_total, 100.0 * final_total / total);
214-
tty->print_cr("\t" UINT64_FORMAT_W(12) " (%4.1f%%) |- static", static_total, 100.0 * static_total / total);
215-
tty->print_cr("\t" UINT64_FORMAT_W(12) " (%4.1f%%) |- native", native_total, 100.0 * native_total / total);
216-
tty->print_cr("\t" UINT64_FORMAT_W(12) " (%4.1f%%) |- accessor", access_total, 100.0 * access_total / total);
212+
special_total, 100.0 * (double)special_total/ total_div);
213+
tty->print_cr("\t" UINT64_FORMAT_W(12) " (%4.1f%%) |- synchronized",synch_total, 100.0 * (double)synch_total / total_div);
214+
tty->print_cr("\t" UINT64_FORMAT_W(12) " (%4.1f%%) |- final", final_total, 100.0 * (double)final_total / total_div);
215+
tty->print_cr("\t" UINT64_FORMAT_W(12) " (%4.1f%%) |- static", static_total, 100.0 * (double)static_total / total_div);
216+
tty->print_cr("\t" UINT64_FORMAT_W(12) " (%4.1f%%) |- native", native_total, 100.0 * (double)native_total / total_div);
217+
tty->print_cr("\t" UINT64_FORMAT_W(12) " (%4.1f%%) |- accessor", access_total, 100.0 * (double)access_total / total_div);
217218
tty->cr();
218219
SharedRuntime::print_call_statistics(comp_total);
219220
}

src/hotspot/share/runtime/java.hpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ class JDK_Version {
7777
static const char* _runtime_vendor_version;
7878
static const char* _runtime_vendor_vm_bug_url;
7979

80-
uint8_t _major;
81-
uint8_t _minor;
82-
uint8_t _security;
83-
uint8_t _patch;
84-
uint8_t _build;
80+
int _major;
81+
int _minor;
82+
int _security;
83+
int _patch;
84+
int _build;
8585

8686
bool is_valid() const {
8787
return (_major != 0);
@@ -96,16 +96,16 @@ class JDK_Version {
9696
_major(0), _minor(0), _security(0), _patch(0), _build(0)
9797
{}
9898

99-
JDK_Version(uint8_t major, uint8_t minor = 0, uint8_t security = 0,
100-
uint8_t patch = 0, uint8_t build = 0) :
99+
JDK_Version(int major, int minor = 0, int security = 0,
100+
int patch = 0, int build = 0) :
101101
_major(major), _minor(minor), _security(security), _patch(patch), _build(build)
102102
{}
103103

104104
// Returns the current running JDK version
105105
static JDK_Version current() { return _current; }
106106

107107
// Factory methods for convenience
108-
static JDK_Version jdk(uint8_t m) {
108+
static JDK_Version jdk(int m) {
109109
return JDK_Version(m);
110110
}
111111

@@ -117,11 +117,11 @@ class JDK_Version {
117117
return _major == 0;
118118
}
119119

120-
uint8_t major_version() const { return _major; }
121-
uint8_t minor_version() const { return _minor; }
122-
uint8_t security_version() const { return _security; }
123-
uint8_t patch_version() const { return _patch; }
124-
uint8_t build_number() const { return _build; }
120+
int major_version() const { return _major; }
121+
int minor_version() const { return _minor; }
122+
int security_version() const { return _security; }
123+
int patch_version() const { return _patch; }
124+
int build_number() const { return _build; }
125125

126126
// Performs a full ordering comparison using all fields (patch, build, etc.)
127127
int compare(const JDK_Version& other) const;

src/hotspot/share/runtime/javaThread.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -875,10 +875,10 @@ void JavaThread::exit(bool destroy_vm, ExitType exit_type) {
875875
// Since above code may not release JNI monitors and if someone forgot to do an
876876
// JNI monitorexit, held count should be equal jni count.
877877
// Consider scan all object monitor for this owner if JNI count > 0 (at least on detach).
878-
assert(this->held_monitor_count() == this->jni_monitor_count(),
879-
"held monitor count should be equal to jni: " INT64_FORMAT " != " INT64_FORMAT,
880-
(int64_t)this->held_monitor_count(), (int64_t)this->jni_monitor_count());
881-
if (CheckJNICalls && this->jni_monitor_count() > 0) {
878+
assert(held_monitor_count() == jni_monitor_count(),
879+
"held monitor count should be equal to jni: " INTX_FORMAT " != " INTX_FORMAT,
880+
held_monitor_count(), jni_monitor_count());
881+
if (CheckJNICalls && jni_monitor_count() > 0) {
882882
// We would like a fatal here, but due to we never checked this before there
883883
// is a lot of tests which breaks, even with an error log.
884884
log_debug(jni)("JavaThread %s (tid: " UINTX_FORMAT ") with Objects still locked by JNI MonitorEnter.",
@@ -1940,24 +1940,24 @@ void JavaThread::trace_stack() {
19401940

19411941
#endif // PRODUCT
19421942

1943-
void JavaThread::inc_held_monitor_count(int i, bool jni) {
1943+
void JavaThread::inc_held_monitor_count(intx i, bool jni) {
19441944
#ifdef SUPPORT_MONITOR_COUNT
1945-
assert(_held_monitor_count >= 0, "Must always be greater than 0: " INT64_FORMAT, (int64_t)_held_monitor_count);
1945+
assert(_held_monitor_count >= 0, "Must always be greater than 0: " INTX_FORMAT, _held_monitor_count);
19461946
_held_monitor_count += i;
19471947
if (jni) {
1948-
assert(_jni_monitor_count >= 0, "Must always be greater than 0: " INT64_FORMAT, (int64_t)_jni_monitor_count);
1948+
assert(_jni_monitor_count >= 0, "Must always be greater than 0: " INTX_FORMAT, _jni_monitor_count);
19491949
_jni_monitor_count += i;
19501950
}
19511951
#endif
19521952
}
19531953

1954-
void JavaThread::dec_held_monitor_count(int i, bool jni) {
1954+
void JavaThread::dec_held_monitor_count(intx i, bool jni) {
19551955
#ifdef SUPPORT_MONITOR_COUNT
19561956
_held_monitor_count -= i;
1957-
assert(_held_monitor_count >= 0, "Must always be greater than 0: " INT64_FORMAT, (int64_t)_held_monitor_count);
1957+
assert(_held_monitor_count >= 0, "Must always be greater than 0: " INTX_FORMAT, _held_monitor_count);
19581958
if (jni) {
19591959
_jni_monitor_count -= i;
1960-
assert(_jni_monitor_count >= 0, "Must always be greater than 0: " INT64_FORMAT, (int64_t)_jni_monitor_count);
1960+
assert(_jni_monitor_count >= 0, "Must always be greater than 0: " INTX_FORMAT, _jni_monitor_count);
19611961
}
19621962
#endif
19631963
}

0 commit comments

Comments
 (0)