< prev index next >

src/hotspot/cpu/x86/rdtsc_x86.cpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2013, 2018, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 60,70 **** start = os::elapsed_counter(); OrderAccess::fence(); fstart = os::rdtsc(); // use sleep to prevent compiler from optimizing ! os::sleep(Thread::current(), FT_SLEEP_MILLISECS, true); end = os::elapsed_counter(); OrderAccess::fence(); fend = os::rdtsc(); --- 60,70 ---- start = os::elapsed_counter(); OrderAccess::fence(); fstart = os::rdtsc(); // use sleep to prevent compiler from optimizing ! os::sleep(JavaThread::current(), FT_SLEEP_MILLISECS); end = os::elapsed_counter(); OrderAccess::fence(); fend = os::rdtsc();
< prev index next >