src/hotspot/share/oops/methodData.cpp
changeset 59252 623722a6aeb9
parent 59247 56bf71d64d51
child 59292 95b1385dd476
equal deleted inserted replaced
59251:4cbfa5077d68 59252:623722a6aeb9
   894   guarantee_failed_speculations_alive(nm, failed_speculations_address);
   894   guarantee_failed_speculations_alive(nm, failed_speculations_address);
   895 
   895 
   896   FailedSpeculation** cursor = failed_speculations_address;
   896   FailedSpeculation** cursor = failed_speculations_address;
   897   do {
   897   do {
   898     if (*cursor == NULL) {
   898     if (*cursor == NULL) {
   899       FailedSpeculation* old_fs = Atomic::cmpxchg(fs, cursor, (FailedSpeculation*) NULL);
   899       FailedSpeculation* old_fs = Atomic::cmpxchg(cursor, (FailedSpeculation*) NULL, fs);
   900       if (old_fs == NULL) {
   900       if (old_fs == NULL) {
   901         // Successfully appended fs to end of the list
   901         // Successfully appended fs to end of the list
   902         return true;
   902         return true;
   903       }
   903       }
   904       cursor = old_fs->next_adr();
   904       cursor = old_fs->next_adr();