mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 12:34:32 +02:00
7193318: C2: remove number of inputs requirement from Node's new operator
Deleted placement new operator of Node - node(size_t, Compile *, int). Reviewed-by: kvn, twisti
This commit is contained in:
parent
973fdc81a1
commit
d5d2e78faa
44 changed files with 1456 additions and 1473 deletions
|
@ -217,18 +217,6 @@ public:
|
|||
return (void*)n;
|
||||
}
|
||||
|
||||
// New Operator that takes a Compile pointer, this will eventually
|
||||
// be the "new" New operator.
|
||||
inline void* operator new( size_t x, Compile* C, int y) {
|
||||
Node* n = (Node*)C->node_arena()->Amalloc_D(x + y*sizeof(void*));
|
||||
n->_in = (Node**)(((char*)n) + x);
|
||||
#ifdef ASSERT
|
||||
n->_in[y-1] = n; // magic cookie for assertion check
|
||||
#endif
|
||||
n->_out = (Node**)C;
|
||||
return (void*)n;
|
||||
}
|
||||
|
||||
// Delete is a NOP
|
||||
void operator delete( void *ptr ) {}
|
||||
// Fancy destructor; eagerly attempt to reclaim Node numberings and storage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue