Mercurial > hg > truffle
diff src/share/vm/gc_interface/collectedHeap.hpp @ 3961:a92cdbac8b9e
7081933: Use zeroing elimination optimization for large array
Summary: Don't zero new typeArray during runtime call if the allocation is followed by arraycopy into it.
Reviewed-by: twisti
author | kvn |
---|---|
date | Mon, 26 Sep 2011 10:24:05 -0700 |
parents | c9ca3f51cf41 |
children | e5928e7dab26 |
line wrap: on
line diff
--- a/src/share/vm/gc_interface/collectedHeap.hpp Sun Sep 25 16:03:29 2011 -0700 +++ b/src/share/vm/gc_interface/collectedHeap.hpp Mon Sep 26 10:24:05 2011 -0700 @@ -322,6 +322,7 @@ // General obj/array allocation facilities. inline static oop obj_allocate(KlassHandle klass, int size, TRAPS); inline static oop array_allocate(KlassHandle klass, int size, int length, TRAPS); + inline static oop array_allocate_nozero(KlassHandle klass, int size, int length, TRAPS); // Special obj/array allocation facilities. // Some heaps may want to manage "permanent" data uniquely. These default