src/share/vm/runtime/park.cpp

changeset 3900
d2a62e0f25eb
parent 2314
f95d63e2154a
child 4153
b9a9ed0f8eeb
equal deleted inserted replaced
3877:74533f63b116 3900:d2a62e0f25eb
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) {
144 return (void *) ((intptr_t (CHeapObj::operator new (sz + 256)) + 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 ...
149 ShouldNotReachHere(); 149 ShouldNotReachHere();

mercurial