src/hotspot/share/memory/universe.cpp
changeset 59249 29b0d0b61615
parent 59070 22ee476cc664
child 59251 4cbfa5077d68
equal deleted inserted replaced
59248:e92153ed8bdc 59249:29b0d0b61615
   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) {