--- old/src/hotspot/cpu/x86/rdtsc_x86.cpp 2019-09-04 05:35:03.589571053 -0400 +++ new/src/hotspot/cpu/x86/rdtsc_x86.cpp 2019-09-04 05:35:02.528560812 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -62,7 +62,7 @@ fstart = os::rdtsc(); // use sleep to prevent compiler from optimizing - os::sleep(Thread::current(), FT_SLEEP_MILLISECS, true); + os::sleep(JavaThread::current(), FT_SLEEP_MILLISECS); end = os::elapsed_counter(); OrderAccess::fence();