--- old/src/hotspot/share/utilities/vmError.cpp 2017-10-10 17:37:56.897139545 -0400 +++ new/src/hotspot/share/utilities/vmError.cpp 2017-10-10 17:37:56.441710735 -0400 @@ -1269,7 +1269,7 @@ } intptr_t mytid = os::current_thread_id(); if (first_error_tid == -1 && - Atomic::cmpxchg_ptr(mytid, &first_error_tid, -1) == -1) { + Atomic::cmpxchg(mytid, &first_error_tid, (intptr_t)-1) == -1) { // Initialize time stamps to use the same base. out.time_stamp().update_to(1);