equal
deleted
inserted
replaced
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(); |