equal
deleted
inserted
replaced
578 // provided by the default error. |
578 // provided by the default error. |
579 // - otherwise, return the default error, without a stack trace. |
579 // - otherwise, return the default error, without a stack trace. |
580 int next; |
580 int next; |
581 if ((_preallocated_out_of_memory_error_avail_count > 0) && |
581 if ((_preallocated_out_of_memory_error_avail_count > 0) && |
582 SystemDictionary::Throwable_klass()->is_initialized()) { |
582 SystemDictionary::Throwable_klass()->is_initialized()) { |
583 next = (int)Atomic::add(-1, &_preallocated_out_of_memory_error_avail_count); |
583 next = (int)Atomic::add(&_preallocated_out_of_memory_error_avail_count, -1); |
584 assert(next < (int)PreallocatedOutOfMemoryErrorCount, "avail count is corrupt"); |
584 assert(next < (int)PreallocatedOutOfMemoryErrorCount, "avail count is corrupt"); |
585 } else { |
585 } else { |
586 next = -1; |
586 next = -1; |
587 } |
587 } |
588 if (next < 0) { |
588 if (next < 0) { |