Searched defs:assert (Results 1 - 18 of 18) sorted by relevance

/openjdk7/langtools/test/tools/javac/diags/examples/
H A DAssertAsIdentifier.java24 // key: compiler.warn.assert.as.identifier
28 int assert; field in class:AssertAsIdentifier
H A DAssertAsIdentifier2.java24 // key: compiler.err.assert.as.identifier
27 int assert; field in class:AssertAsIdentifier
/openjdk7/hotspot/src/share/vm/shark/
H A DllvmHeaders.hpp29 #ifdef assert
30 #undef assert macro
71 #ifdef assert
72 #undef assert macro
78 #define assert(p, msg) \ macro
81 report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", msg); \
86 #define assert(p, msg) macro
90 report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", msg); \
97 #define assert(p, msg)
/openjdk7/langtools/test/tools/javadoc/sourceOption/p/
H A DA.java27 boolean assert; // illegal since 1.4 field in class:A
/openjdk7/hotspot/src/share/vm/interpreter/
H A DbytecodeStream.cpp30 assert(!is_last_bytecode(), "should have been checked");
39 assert(_bci < _next_bci, "length must be > 0"); function
60 assert(size == 2, "raw invokedynamic instruction has 2-byte index only");
68 assert( is_raw(), "this function only works on raw streams");
70 assert(!is_raw(), "this function only works on non-raw streams");
/openjdk7/hotspot/src/share/vm/adlc/
H A Dadlc.hpp83 #undef assert macro
84 #define assert(cond, msg) { if (!(cond)) { fprintf(stderr, "assert fails %s %d: %s\n", __FILE__, __LINE__, msg); abort(); }} macro
H A DarchDesc.cpp284 assert( strcmp(rootOp,"sReg") != 0, "Disable untyped 'sReg'");
416 // assert(opcForm != NULL, "Match Rule contains invalid operand name.");
478 assert( oper->cost(), "This case expects NULL cost, not default cost");
506 assert(index != 0, "Failed lookup of ideal node\n");
514 assert(index < _last_opcode, "Matching item not in ideal graph\n"); function
576 assert(0, "fatal error");
678 assert( _register->verify(), "Register declarations failed verification");
799 default: assert(0, ""); break;
1090 assert(count == (size_t) size, "copyright info truncated");
/openjdk7/hotspot/src/share/vm/gc_implementation/parallelScavenge/
H A DobjectStartArray.hpp65 assert(_covered_region.contains(p),
68 assert(_blocks_region.contains(result),
75 assert(_blocks_region.contains(p),
79 assert(_covered_region.contains(result),
88 // We have to do this before the assert
93 assert(_blocks_region.contains(p),
104 assert(_covered_region.contains(result),
123 assert(_covered_region.contains(p), "Must be in covered region");
127 assert(offset < 128, "Sanity"); argument
128 // When doing MT offsets, we can't assert thi
[all...]
/openjdk7/hotspot/src/share/vm/utilities/
H A Ddebug.hpp108 // Used to format messages for assert(), guarantee(), fatal(), etc.
115 #define assert(p, msg) \ macro
118 report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", msg); \
123 #define assert(p, msg) macro
127 report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", msg); \
134 // This version of assert is for use with checking return status from
144 report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", \
151 // Do not assert this condition if there's already another error reported.
152 #define assert_if_no_error(cond,msg) assert((cond) || is_error_reported(), msg)
154 #define assert(
[all...]
/openjdk7/jdk/src/share/native/com/sun/java/util/jar/pack/
H A Ddefines.h52 #define assert(p) macro
58 #define assert(p) ((p) || assert_failed(#p)) macro
H A Dcoding.cpp61 assert(S > 0);
72 assert(spec != 0); // sanity
96 assert(range > 0); // no useless codings, please
128 assert(!(isFullRange | isSigned | isSubrange)); // init
177 assert(state->rp == state->rplimit); // not in mid-stream, please
178 //assert(this == vs0.cm);
195 assert(B <= B_MAX);
203 assert(false);
209 assert(H == (1<<lgH));
218 assert(
351 assert(x < 0); function
[all...]
H A Dunpack.cpp149 assert(outputIndex > NOT_REQUESTED);
154 assert((uint)refnum < nrefs);
159 assert(tagMatches(CONSTANT_Utf8));
160 assert(value.b.len == strlen((const char*)value.b.ptr));
165 assert(tagMatches(CONSTANT_Class));
170 assert(tagMatches(CONSTANT_Member));
175 assert(tagMatches(CONSTANT_Member));
180 assert(tagMatches(CONSTANT_NameandType));
185 assert(tagMatches(CONSTANT_NameandType));
192 int asInteger() { assert(ta
2055 assert(inord < (uint)cp.tag_count[CONSTANT_Class]); if (ic_index[inord] != null) { abort(�); break; } ic_index[inord] = &ics[i]; ics[i].inner = inner; ics[i].flags = flags; assert(cp.getIC(inner) == &ics[i]); } CHECK; ic_outer_class.readData(long_forms); ic_name.readData(long_forms); for (i = 0; i < ic_count; i++) { if (ics[i].name == NO_ENTRY_YET) { ics[i].outer = ic_outer_class.getRefN(); CHECK; ics[i].name = ic_name.getRefN(); CHECK; } else { bytes& n = ics[i].inner->value.b; bytes pkgOuter; bytes number; bytes name; PRINTCR((5, �, n.ptr)); int dollar1, dollar2; int nlen = (int)n.len; int pkglen = lastIndexOf(SLASH_MIN, SLASH_MAX, n, nlen) + 1; dollar2 = lastIndexOf(DOLLAR_MIN, DOLLAR_MAX, n, nlen); if (dollar2 < 0) { abort(); return; } assert(dollar2 >= pkglen); if (isDigitString(n, dollar2+1, nlen)) { number = n.slice(dollar2+1, nlen); name.set(null,0); dollar1 = dollar2; } else if (pkglen < (dollar1 = lastIndexOf(DOLLAR_MIN, DOLLAR_MAX, n, dollar2-1)) && isDigitString(n, dollar1+1, dollar2)) { number = n.slice(dollar1+1, dollar2); name = n.slice(dollar2+1, nlen); } else { dollar1 = dollar2; number.set(null,0); name = n.slice(dollar2+1, nlen); } if (number.ptr == null) pkgOuter = n.slice(0, dollar1); else pkgOuter.set(null,0); PRINTCR((5,�, pkgOuter.string(), number.string(), name.string())); if (pkgOuter.ptr != null) ics[i].outer = cp.ensureClass(pkgOuter); if (name.ptr != null) ics[i].name = cp.ensureUtf8(name); } if (ics[i].outer != null) { uint outord = ics[i].outer->inord; if (outord != NO_INORD) { assert(outord < (uint)cp.tag_count[CONSTANT_Class]); ics[i].next_sibling = ic_child_index[outord]; ic_child_index[outord] = &ics[i]; } } } } void unpacker::read_classes() { PRINTCR((1,�, class_count)); class_this.readData(class_count); class_super.readData(class_count); class_interface_count.readData(class_count); class_interface.readData(class_interface_count.getIntTotal()); CHECK; class_field_count.readData(class_count); class_method_count.readData(class_count); CHECK; int field_count = class_field_count.getIntTotal(); int method_count = class_method_count.getIntTotal(); field_descr.readData(field_count); read_attrs(ATTR_CONTEXT_FIELD, field_count); CHECK; method_descr.readData(method_count); read_attrs(ATTR_CONTEXT_METHOD, method_count); CHECK; read_attrs(ATTR_CONTEXT_CLASS, class_count); CHECK; read_code_headers(); PRINTCR((1,�, class_count, field_count, method_count, code_count)); } maybe_inline int unpacker::attr_definitions::predefCount(uint idx) { return isPredefined(idx) ? flag_count[idx] : 0; } void unpacker::read_attrs(int attrc, int obj_count) { attr_definitions& ad = attr_defs[attrc]; assert(ad.attrc == attrc); int i, idx, count; CHECK; bool haveLongFlags = ad.haveLongFlags(); band& xxx_flags_hi = ad.xxx_flags_hi(); assert(endsWith(xxx_flags_hi.name, �)); if (haveLongFlags) xxx_flags_hi.readData(obj_count); CHECK; band& xxx_flags_lo = ad.xxx_flags_lo(); assert(endsWith(xxx_flags_lo.name, �)); xxx_flags_lo.readData(obj_count); CHECK; julong indexMask = ad.flagIndexMask(); for (i = 0; i < obj_count; i++) { julong indexBits = xxx_flags_hi.getLong(xxx_flags_lo, haveLongFlags); if ((indexBits & ~indexMask) > (ushort)-1) { abort(�); return; } indexBits &= indexMask; for (idx = 0; indexBits != 0; idx++, indexBits >>= 1) argument
[all...]
/openjdk7/jdk/src/share/native/sun/security/ec/impl/
H A Dmpi.h54 #define assert ASSERT macro
379 #include <assert.h>
380 #define ARGCHK(X,Y) assert(X)
/openjdk7/hotspot/src/share/vm/memory/
H A DgenCollectedHeap.cpp84 assert(policy != NULL, "Sanity check");
215 assert(total_reserved % pageSize == 0,
219 assert(total_reserved % pageSize == 0,
232 assert(total_reserved != 0, "total_reserved cannot be 0");
270 assert(heap_address == NULL, "");
294 assert(def_new_gen->kind() == Generation::DefNew ||
300 assert(old_gen->kind() == Generation::ConcurrentMarkSweep ||
337 assert(level < _n_gens, "Illegal level parameter"); function
358 assert(_full_collections_completed <= _total_full_collections,
372 assert((_full_collections_complete
[all...]
/openjdk7/hotspot/src/share/vm/oops/
H A DgenerateOopMap.cpp262 assert(cur->target_bci() != -1, "sanity check");
386 assert(bci>= 0 && bci < c->method()->code_size(), "index out of bounds");
424 assert(!fellThrough, "should not happen");
428 assert(!fellThrough, "should not happen");
439 assert(bci>= 0 && bci < c->method()->code_size(), "index out of bounds");
475 assert(bci == bb->_end_bci, "wrong bci");
483 assert(!fell_through, "should not happen");
558 assert(bcs->is_wide()==false, "sanity check");
590 assert(bb->_bci == bci, "should have found BB");
606 assert( bc
825 assert(localNo < _max_locals + _nof_refval_conflicts, "variable read error"); function
1680 assert(poplen < 5, "this must be less than length of actual vector"); function
[all...]
/openjdk7/hotspot/src/share/vm/opto/
H A Dparse2.cpp161 assert(ptr != top(), "top should go hand-in-hand with stopped");
252 assert(lo <= hi, "must be a non-empty range");
256 assert(lo <= hi, "must be a non-empty range");
319 assert(ranges[rp].hi() == highest, "");
324 assert(rp < len+2, "not too many ranges"); function
375 assert(ranges[rp].hi() == highest, "");
380 assert(rp < rnum, "not too many ranges");
483 assert(i == num_cases, "miscount of cases");
494 assert(lo->lo() == min_jint, "initial range must exhaust Type::INT");
495 assert(h
[all...]
H A Dlibrary_call.cpp122 void set_result(Node* n) { assert(_result == NULL, "only set once"); _result = n; }
299 assert(id != vmIntrinsics::_none, "must be a VM intrinsic");
484 assert(id <= vmIntrinsics::LAST_COMPILER_INLINE, "caller responsibility");
485 assert(id != vmIntrinsics::_Object_init && id != vmIntrinsics::_invoke, "enum out of order?");
576 assert(is_predicted(), "sanity");
627 assert(map()->memory()->Opcode() == Op_Parm, "");
631 assert(merged_memory(), "");
811 assert(map()->memory()->Opcode() == Op_Parm, "");
815 assert(merged_memory(), "");
844 assert(valu
5101 assert(end_con < 0, "not two cons"); function
[all...]
/openjdk7/hotspot/src/share/vm/gc_implementation/g1/
H A DconcurrentMark.cpp67 assert(_virtual_space.committed_size() == brs.size(),
70 assert(_virtual_space.committed_size() << (_shifter + LogBitsPerByte) >=
87 assert(nextAddr >= addr, "get_next_one postcondition");
88 assert(nextAddr == limit || isMarked(nextAddr),
102 assert(nextAddr >= addr, "get_next_one postcondition");
103 assert(nextAddr == limit || !isMarked(nextAddr),
109 assert((diff & ((1 << _shifter) - 1)) == 0, "argument check");
115 // assert(_bm.map() == _virtual_space.low(), "map inconsistency");
116 assert(((size_t)_bm.size() * ((size_t)1 << _shifter)) == _bmWordSize,
130 assert(!m
224 assert(ind < _capacity, "By overflow test above."); function
[all...]

Completed in 6156 milliseconds