mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
7081933: Use zeroing elimination optimization for large array
Don't zero new typeArray during runtime call if the allocation is followed by arraycopy into it. Reviewed-by: twisti
This commit is contained in:
parent
95c56a472b
commit
47e357e16f
13 changed files with 97 additions and 11 deletions
|
@ -2847,7 +2847,7 @@ Node *MemBarNode::match( const ProjNode *proj, const Matcher *m ) {
|
|||
|
||||
//---------------------------InitializeNode------------------------------------
|
||||
InitializeNode::InitializeNode(Compile* C, int adr_type, Node* rawoop)
|
||||
: _is_complete(false),
|
||||
: _is_complete(Incomplete),
|
||||
MemBarNode(C, adr_type, rawoop)
|
||||
{
|
||||
init_class_id(Class_Initialize);
|
||||
|
@ -2885,7 +2885,7 @@ bool InitializeNode::is_non_zero() {
|
|||
|
||||
void InitializeNode::set_complete(PhaseGVN* phase) {
|
||||
assert(!is_complete(), "caller responsibility");
|
||||
_is_complete = true;
|
||||
_is_complete = Complete;
|
||||
|
||||
// After this node is complete, it contains a bunch of
|
||||
// raw-memory initializations. There is no need for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue