@@ -190,9 +190,13 @@ enum TR_EntryStatusInfo
190
190
class TR_IPBytecodeHashTableEntry
191
191
{
192
192
public:
193
- static void * alignedPersistentAlloc (size_t size);
194
- TR_IPBytecodeHashTableEntry (uintptr_t pc) : _next(NULL ), _pc(pc), _lastSeenClassUnloadID(-1 ), _entryFlags(0 ), _persistFlags(IPBC_ENTRY_CAN_PERSIST_FLAG) {}
193
+ void * operator new (size_t size) throw ();
194
+ void operator delete (void *p) throw ();
195
+ void * operator new (size_t size, void * placement) {return placement;}
196
+ void operator delete (void *p, void *) {}
195
197
198
+ TR_IPBytecodeHashTableEntry (uintptr_t pc) : _next(NULL ), _pc(pc), _lastSeenClassUnloadID(-1 ), _entryFlags(0 ), _persistFlags(IPBC_ENTRY_CAN_PERSIST_FLAG) {}
199
+ virtual ~TR_IPBytecodeHashTableEntry () {}
196
200
uintptr_t getPC () const { return _pc; }
197
201
TR_IPBytecodeHashTableEntry * getNext () const { return _next; }
198
202
void setNext (TR_IPBytecodeHashTableEntry *n) { _next = n; }
@@ -298,10 +302,6 @@ class TR_IPBCDataFourBytes : public TR_IPBytecodeHashTableEntry
298
302
{
299
303
public:
300
304
TR_IPBCDataFourBytes (uintptr_t pc) : TR_IPBytecodeHashTableEntry(pc), data(0 ) {}
301
- void * operator new (size_t size) throw ();
302
- void operator delete (void *p) throw () {}
303
- void * operator new (size_t size, void * placement) {return placement;}
304
- void operator delete (void *p, void *) {}
305
305
306
306
static const uint32_t IPROFILING_INVALID = ~0 ;
307
307
virtual uintptr_t getData (TR::Compilation *comp = NULL ) { return (uint32_t )data; }
@@ -329,8 +329,6 @@ class TR_IPBCDataAllocation : public TR_IPBytecodeHashTableEntry
329
329
{
330
330
public:
331
331
TR_IPBCDataAllocation (uintptr_t pc) : TR_IPBytecodeHashTableEntry(pc), clazz(0 ), method(0 ), data(0 ) {}
332
- void * operator new (size_t size) throw ();
333
- void operator delete (void *p) throw () {}
334
332
static const uint32_t IPROFILING_INVALID = ~0 ;
335
333
virtual uintptr_t getData (TR::Compilation *comp = NULL ) { return (uint32_t )data; }
336
334
virtual uint32_t * getDataReference () { return &data; }
@@ -359,10 +357,6 @@ class TR_IPBCDataEightWords : public TR_IPBytecodeHashTableEntry
359
357
for (int i = 0 ; i < SWITCH_DATA_COUNT; i++)
360
358
data[i] = 0 ;
361
359
};
362
- void * operator new (size_t size) throw ();
363
- void operator delete (void *p) throw () {}
364
- void * operator new (size_t size, void * placement) {return placement;}
365
- void operator delete (void *p, void *) {}
366
360
static const uint64_t IPROFILING_INVALID = ~0 ;
367
361
virtual uintptr_t getData (TR::Compilation *comp = NULL ) { /* TR_ASSERT(0, "Don't call me, I'm empty"); */ return 0 ;}
368
362
virtual int32_t setData (uintptr_t value, uint32_t freq = 1 ) { /* TR_ASSERT(0, "Don't call me, I'm empty");*/ return 0 ;}
@@ -394,10 +388,6 @@ class TR_IPBCDataCallGraph : public TR_IPBytecodeHashTableEntry
394
388
{
395
389
_csInfo.initialize ();
396
390
}
397
- void * operator new (size_t size) throw ();
398
- void operator delete (void *p) throw () {}
399
- void * operator new (size_t size, void * placement) {return placement;}
400
- void operator delete (void *p, void *) {}
401
391
402
392
// Set the higher 32 bits to zero under compressedref to avoid assertion in
403
393
// CallSiteProfileInfo::setClazz, which is called by setInvalid with IPROFILING_INVALID
0 commit comments