< prev index next >

src/share/vm/prims/whitebox.cpp

Print this page

        

*** 1541,1551 **** THROW_MSG_0(vmSymbols::java_lang_IllegalArgumentException(), err_msg("WB_IncMetaspaceCapacityUntilGC: inc does not fit in size_t: " JLONG_FORMAT, inc)); } size_t new_cap_until_GC = 0; ! size_t aligned_inc = align_size_down((size_t) inc, Metaspace::commit_alignment()); bool success = MetaspaceGC::inc_capacity_until_GC(aligned_inc, &new_cap_until_GC); if (!success) { THROW_MSG_0(vmSymbols::java_lang_IllegalStateException(), "WB_IncMetaspaceCapacityUntilGC: could not increase capacity until GC " "due to contention with another thread"); --- 1541,1551 ---- THROW_MSG_0(vmSymbols::java_lang_IllegalArgumentException(), err_msg("WB_IncMetaspaceCapacityUntilGC: inc does not fit in size_t: " JLONG_FORMAT, inc)); } size_t new_cap_until_GC = 0; ! size_t aligned_inc = align_down((size_t) inc, Metaspace::commit_alignment()); bool success = MetaspaceGC::inc_capacity_until_GC(aligned_inc, &new_cap_until_GC); if (!success) { THROW_MSG_0(vmSymbols::java_lang_IllegalStateException(), "WB_IncMetaspaceCapacityUntilGC: could not increase capacity until GC " "due to contention with another thread");
< prev index next >