src/share/vm/runtime/park.cpp

changeset 5614
9758d9f36299
parent 4153
b9a9ed0f8eeb
child 6348
0e6af9b390af
equal deleted inserted replaced
5613:cef1e56a4d88 5614:9758d9f36299
1 /* 1 /*
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
138 // Beware that excessive address alignment is undesirable 138 // Beware that excessive address alignment is undesirable
139 // as it can result in D$ index usage imbalance as 139 // as it can result in D$ index usage imbalance as
140 // well as bank access imbalance on Niagara-like platforms, 140 // well as bank access imbalance on Niagara-like platforms,
141 // although Niagara's hash function should help. 141 // although Niagara's hash function should help.
142 142
143 void * ParkEvent::operator new (size_t sz) { 143 void * ParkEvent::operator new (size_t sz) throw() {
144 return (void *) ((intptr_t (AllocateHeap(sz + 256, mtInternal, CALLER_PC)) + 256) & -256) ; 144 return (void *) ((intptr_t (AllocateHeap(sz + 256, mtInternal, CALLER_PC)) + 256) & -256) ;
145 } 145 }
146 146
147 void ParkEvent::operator delete (void * a) { 147 void ParkEvent::operator delete (void * a) {
148 // ParkEvents are type-stable and immortal ... 148 // ParkEvents are type-stable and immortal ...

mercurial