< prev index next >

src/hotspot/share/gc/parallel/psOldGen.cpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2001, 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) 2001, 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.
*** 223,241 **** } HeapWord* PSOldGen::expand_and_allocate(size_t word_size) { expand(word_size*HeapWordSize); if (GCExpandToAllocateDelayMillis > 0) { ! os::sleep(Thread::current(), GCExpandToAllocateDelayMillis, false); } return allocate_noexpand(word_size); } HeapWord* PSOldGen::expand_and_cas_allocate(size_t word_size) { expand(word_size*HeapWordSize); if (GCExpandToAllocateDelayMillis > 0) { ! os::sleep(Thread::current(), GCExpandToAllocateDelayMillis, false); } return cas_allocate_noexpand(word_size); } void PSOldGen::expand(size_t bytes) { --- 223,241 ---- } HeapWord* PSOldGen::expand_and_allocate(size_t word_size) { expand(word_size*HeapWordSize); if (GCExpandToAllocateDelayMillis > 0) { ! os::naked_sleep(GCExpandToAllocateDelayMillis); } return allocate_noexpand(word_size); } HeapWord* PSOldGen::expand_and_cas_allocate(size_t word_size) { expand(word_size*HeapWordSize); if (GCExpandToAllocateDelayMillis > 0) { ! os::naked_sleep(GCExpandToAllocateDelayMillis); } return cas_allocate_noexpand(word_size); } void PSOldGen::expand(size_t bytes) {
< prev index next >