From d8d741d12f04c75637e8371ffe97cf07920db159 Mon Sep 17 00:00:00 2001 From: kvn Date: Thu, 27 Sep 2012 09:38:42 -0700 Subject: 7193318: C2: remove number of inputs requirement from Node's new operator Summary: Deleted placement new operator of Node - node(size_t, Compile *, int). Reviewed-by: kvn, twisti Contributed-by: bharadwaj.yadavalli@oracle.com --- src/share/vm/opto/node.hpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/share/vm/opto/node.hpp') diff --git a/src/share/vm/opto/node.hpp b/src/share/vm/opto/node.hpp index 759c0bcd6..a6033c68b 100644 --- a/src/share/vm/opto/node.hpp +++ b/src/share/vm/opto/node.hpp @@ -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 -- cgit v1.2.3