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(); |