Searched refs:assert (Results 1 - 25 of 1282) sorted by relevance

1234567891011>>

/openjdk10/nashorn/test/script/basic/
H A DJDK-8017046.js31 function assert(value, msg) { function
38 assert(a === arguments[0], "a !== arguments[0]");
39 assert(a === "hello", "a !== 'hello'");
41 assert(a === arguments[0], "a !== arguments[0]");
42 assert(a === undefined, "a !== undefined");
43 assert(typeof(a) === 'undefined', "typeof(a) is not 'undefined'");
/openjdk10/hotspot/src/os/windows/vm/
H A DthreadCritical_windows.cpp58 assert(lock_owner == -1, "Mutex being deleted while owned.");
59 assert(lock_count == -1, "Mutex being deleted while recursively locked");
60 assert(lock_event != NULL, "Sanity check");
72 assert(ret == WAIT_OBJECT_0, "unexpected return value from WaitForSingleObject");
83 assert(lock_owner == -1, "Lock acquired illegally.");
90 assert(lock_owner == GetCurrentThreadId(), "Lock acquired illegally.");
94 assert(lock_owner == GetCurrentThreadId(), "unlock attempt by wrong thread");
95 assert(lock_count >= 0, "Attempt to unlock when already unlocked");
103 assert(ret != 0, "unexpected return value from SetEvent");
H A DthreadLocalStorage_windows.cpp34 assert(!_initialized, "initializing TLS more than once!");
36 // If this assert fails we will get a recursive assertion failure
38 assert(_thread_key != TLS_OUT_OF_INDEXES, "TlsAlloc failed: out of indices");
47 // If this assert fails we will get a recursive assertion failure
52 assert(_initialized, "TLS not initialized yet!");
54 assert(current != 0 || GetLastError() == ERROR_SUCCESS,
60 assert(_initialized, "TLS not initialized yet!");
62 assert(res, "TlsSetValue failed with error code: %lu", GetLastError());
/openjdk10/hotspot/src/cpu/ppc/vm/
H A Dc1_LIR_ppc.cpp40 assert(!as_FloatRegister(reg2)->is_valid(), "Not used on this platform");
50 assert(scale() == times_1, "Scaled addressing mode not available on PPC and should not be used");
51 assert(disp() == 0 || index()->is_illegal(), "can't have both");
53 assert(base()->is_cpu_register(), "wrong base operand");
54 assert(index()->is_illegal() || index()->is_double_cpu(), "wrong index operand");
55 assert(base()->type() == T_OBJECT || base()->type() == T_LONG || base()->type() == T_METADATA,
58 assert(base()->is_single_cpu(), "wrong base operand");
59 assert(index()->is_illegal() || index()->is_single_cpu(), "wrong index operand");
60 assert(base()->type() == T_OBJECT || base()->type() == T_INT || base()->type() == T_METADATA,
H A Dvmreg_ppc.hpp39 assert(is_Register() && is_even(value()), "even-aligned GPR name");
44 assert(is_FloatRegister() && is_even(value()), "must be");
49 assert(is_reg(), "must be");
/openjdk10/hotspot/src/cpu/s390/vm/
H A Dc1_LinearScan_s390.hpp31 assert(FrameMap::Z_R14_opr->cpu_regnr() == 10, "wrong assumption below");
32 assert(FrameMap::Z_R0_opr->cpu_regnr() == 11, "wrong assumption below");
33 assert(FrameMap::Z_R1_opr->cpu_regnr() == 12, "wrong assumption below");
34 assert(FrameMap::Z_R8_opr->cpu_regnr() == 13, "wrong assumption below");
35 assert(FrameMap::Z_R9_opr->cpu_regnr() == 14, "wrong assumption below");
36 assert(FrameMap::Z_R15_opr->cpu_regnr() == 15, "wrong assumption below");
37 assert(reg_num >= 0, "invalid reg_num");
52 assert(assigned_reg >= 0 && assigned_reg < nof_regs, "should call this only for registers");
H A Dvmreg_s390.hpp39 assert(is_Register() && is_even(value()), "even-aligned GPR name");
44 assert(is_FloatRegister() && is_even(value()), "must be");
49 assert(is_reg(), "must be");
/openjdk10/hotspot/src/share/vm/gc/cms/
H A DcmsLockVerifier.cpp47 assert(p_lock1 == NULL && p_lock2 == NULL, "Unexpected caller error");
51 assert(myThread == ConcurrentMarkSweepThread::cmst(),
53 assert(ConcurrentMarkSweepThread::cms_thread_has_cms_token(),
56 assert(ConcurrentMarkSweepThread::vm_thread_has_cms_token(),
62 assert(myThread->is_GC_task_thread(), "Unexpected thread type");
78 assert(p_lock1 == NULL || !p_lock1->is_locked() || p_lock1->owned_by_self(),
80 assert(p_lock2 == NULL || !p_lock2->is_locked() || p_lock2->owned_by_self(),
87 assert(lock->owner() == VMThread::vm_thread() ||
/openjdk10/hotspot/src/share/vm/ci/
H A DciBaseObject.cpp35 assert((_ident >> FLAG_BITS) == 0, "must only initialize once");
36 assert( id < ((uint)1 << (BitsPerInt-FLAG_BITS)), "id too big");
46 assert(id != 0, "must be initialized");
H A DciObject.hpp71 assert(_handle != NULL, "null oop");
148 assert(is_null_object(), "bad cast");
152 assert(is_call_site(), "bad cast");
156 assert(is_instance(), "bad cast");
160 assert(is_member_name(), "bad cast");
164 assert(is_method_handle(), "bad cast");
168 assert(is_method_type(), "bad cast");
172 assert(is_array(), "bad cast");
176 assert(is_obj_array(), "bad cast");
180 assert(is_type_arra
[all...]
H A DciMetadata.hpp67 assert(is_method(), "bad cast");
71 assert(is_method_data(), "bad cast");
75 assert(is_symbol(), "bad cast");
79 assert(is_type(), "bad cast");
83 assert(is_return_address(), "bad cast");
87 assert(is_klass(), "bad cast");
91 assert(is_instance_klass(), "bad cast");
95 assert(is_array_klass(), "bad cast");
99 assert(is_obj_array_klass(), "bad cast");
103 assert(is_type_array_klas
[all...]
H A DciTypeArray.cpp41 assert(index >= 0 && index < length(), "out of range");
45 assert(c == d, "");
56 assert(index >= 0 && index < length(), "out of range");
H A DciBaseObject.hpp79 assert(is_symbol(), "must be");
83 assert(is_object(), "must be");
87 assert(is_metadata(), "must be");
/openjdk10/hotspot/src/share/vm/gc/g1/
H A DsuspendibleThreadSet.cpp39 assert(_synchronize_wakeup == NULL, "STS already initialized");
45 assert(_nthreads_stopped <= _nthreads, "invariant");
50 assert(!Thread::current()->is_suspendible_thread(), "Thread already joined");
60 assert(Thread::current()->is_suspendible_thread(), "Thread not joined");
62 assert(_nthreads > 0, "Invalid");
72 assert(Thread::current()->is_suspendible_thread(), "Must have joined");
87 assert(_nthreads_stopped > 0, "Invalid");
93 assert(Thread::current()->is_VM_thread(), "Must be the VM thread");
99 assert(!_suspend_all, "Only one at a time");
122 assert(_suspend_al
[all...]
/openjdk10/hotspot/src/share/vm/utilities/
H A DglobalDefinitions.cpp60 assert(min_intx == (intx)CONST64(0x8000000000000000), "correct constant");
61 assert(max_intx == CONST64(0x7FFFFFFFFFFFFFFF), "correct constant");
62 assert(max_uintx == CONST64(0xFFFFFFFFFFFFFFFF), "correct constant");
63 assert( 8 == sizeof( intx), "wrong size for basic type");
64 assert( 8 == sizeof( jobject), "wrong size for basic type");
66 assert(min_intx == (intx)0x80000000, "correct constant");
67 assert(max_intx == 0x7FFFFFFF, "correct constant");
68 assert(max_uintx == 0xFFFFFFFF, "correct constant");
69 assert( 4 == sizeof( intx), "wrong size for basic type");
70 assert(
[all...]
/openjdk10/hotspot/src/os/solaris/vm/
H A DthreadCritical_solaris.cpp54 assert(global_mut_count == 0, "must have clean count");
55 assert(global_mut_owner == -1, "must have clean owner");
60 assert (Threads::number_of_threads() == 0, "valid only during initialization");
66 assert(global_mut_owner == thr_self(), "must have correct owner");
67 assert(global_mut_count > 0, "must have correct count");
75 assert (Threads::number_of_threads() == 0, "valid only during initialization");
/openjdk10/hotspot/src/cpu/sparc/vm/
H A Dc1_LIR_sparc.cpp39 assert(as_FloatRegister(reg2) != fnoreg, "Sparc holds double in two regs.");
49 assert(scale() == times_1, "Scaled addressing mode not available on SPARC and should not be used");
50 assert(disp() == 0 || index()->is_illegal(), "can't have both");
51 assert(base()->is_cpu_register(), "wrong base operand");
52 assert(index()->is_illegal() || index()->is_double_cpu(), "wrong index operand");
53 assert(base()->type() == T_OBJECT || base()->type() == T_LONG || base()->type() == T_METADATA,
H A Dvmreg_sparc.hpp32 assert( is_Register() && is_even(value()), "even-aligned GPR name" );
38 assert( is_FloatRegister(), "must be" );
44 assert(is_reg(), "must be");
54 assert(false, "what register?");
H A Dassembler_sparc.cpp46 assert((addrN - addr0) % BytesPerInstWord == 0, "must be");
52 assert(!(is_cti(prev) && is_cti(insn)), "CTI-CTI not allowed.");
55 assert(!(is_cti(prev) && is_rdpc(insn)), "CTI-RDPC not allowed.");
56 assert(!(is_rdpc(prev) && is_cti(insn)), "RDPC-CTI not allowed.");
/openjdk10/hotspot/src/cpu/arm/vm/
H A Dc1_LIR_arm.cpp39 assert(as_FloatRegister(reg2) == fnoreg, "Not used on this platform");
48 assert(as_FloatRegister(reg2) != fnoreg, "Arm32 holds double in two regs.");
60 assert(base()->is_cpu_register(), "wrong base operand");
64 assert(index()->is_single_cpu() && (index()->type() == T_INT), "wrong index operand");
66 assert(index()->is_illegal() || index()->is_double_cpu() ||
68 assert(base()->type() == T_OBJECT || base()->type() == T_LONG || base()->type() == T_METADATA, "wrong type for addresses");
71 assert(disp() == 0 || index()->is_illegal(), "can't have both");
75 assert(index()->is_illegal() || index()->is_double_cpu(), "wrong index operand");
76 assert(base()->type() == T_OBJECT || base()->type() == T_LONG || base()->type() == T_METADATA,
79 assert(bas
[all...]
H A DmacroAssembler_arm.inline.hpp36 assert((new_offset & 3) == 0, "bad alignment");
41 assert (is_offset_in_range(new_offset, 26), "offset is too large");
45 assert (is_offset_in_range(new_offset, 19), "offset is too large");
49 assert (is_offset_in_range(new_offset, 19), "offset is too large");
53 assert (is_offset_in_range(new_offset, 14), "offset is too large");
58 assert (opc != 0b01 || ((uintx)target & 7) == 0, "ldr target should be aligned");
59 assert (is_offset_in_range(new_offset, 19), "offset is too large");
63 assert (is_imm_in_range(new_offset, 21, 0), "offset is too large");
68 assert (*(unsigned int *)(branch + InstructionSize) == address_placeholder_instruction, "address placeholder occupies two instructions");
77 assert(new_offse
[all...]
H A Dvmreg_arm.hpp37 assert(is_Register(), "must be");
38 assert(is_concrete(), "concrete register expected");
43 assert(is_FloatRegister(), "must be");
44 assert(is_concrete(), "concrete register expected");
/openjdk10/hotspot/src/cpu/aarch64/vm/
H A Dvmreg_aarch64.hpp39 assert( is_Register(), "must be");
45 assert( is_FloatRegister() && is_even(value()), "must be" );
51 assert(is_reg(), "must be");
H A Dc1_LIR_aarch64.cpp39 assert(as_FloatRegister(reg2) == fnoreg, "Not used on this platform");
49 assert(base()->is_cpu_register(), "wrong base operand");
50 assert(index()->is_illegal() || index()->is_double_cpu() || index()->is_single_cpu(), "wrong index operand");
51 assert(base()->type() == T_OBJECT || base()->type() == T_LONG || base()->type() == T_METADATA,
/openjdk10/hotspot/src/os_cpu/solaris_x86/vm/
H A Dcount_trailing_zeros_solaris_x86.hpp31 assert(x != 0, "precondition");

Completed in 282 milliseconds

1234567891011>>