< prev index next >

test/hotspot/gtest/utilities/test_singleWriterSynchronizer.cpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 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) 2018, 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.
*** 131,143 **** &continue_running); writer->doit(); tty->print_cr("Stressing synchronizer for %u ms", milliseconds_to_run); { ! ThreadInVMfromNative invm(JavaThread::current()); ! os::sleep(Thread::current(), milliseconds_to_run, true); } continue_running = 0; for (uint i = 0; i < nreaders + 1; ++i) { post.wait(); } --- 131,144 ---- &continue_running); writer->doit(); tty->print_cr("Stressing synchronizer for %u ms", milliseconds_to_run); + JavaThread* cur = JavaThread::current(); { ! ThreadInVMfromNative invm(cur); ! os::sleep(cur, milliseconds_to_run); } continue_running = 0; for (uint i = 0; i < nreaders + 1; ++i) { post.wait(); }
< prev index next >