Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
3960:f08d439fab8c | 3961:a92cdbac8b9e |
---|---|
320 virtual void preload_and_dump(TRAPS) { ShouldNotReachHere(); } | 320 virtual void preload_and_dump(TRAPS) { ShouldNotReachHere(); } |
321 | 321 |
322 // General obj/array allocation facilities. | 322 // General obj/array allocation facilities. |
323 inline static oop obj_allocate(KlassHandle klass, int size, TRAPS); | 323 inline static oop obj_allocate(KlassHandle klass, int size, TRAPS); |
324 inline static oop array_allocate(KlassHandle klass, int size, int length, TRAPS); | 324 inline static oop array_allocate(KlassHandle klass, int size, int length, TRAPS); |
325 inline static oop array_allocate_nozero(KlassHandle klass, int size, int length, TRAPS); | |
325 | 326 |
326 // Special obj/array allocation facilities. | 327 // Special obj/array allocation facilities. |
327 // Some heaps may want to manage "permanent" data uniquely. These default | 328 // Some heaps may want to manage "permanent" data uniquely. These default |
328 // to the general routines if the heap does not support such handling. | 329 // to the general routines if the heap does not support such handling. |
329 inline static oop permanent_obj_allocate(KlassHandle klass, int size, TRAPS); | 330 inline static oop permanent_obj_allocate(KlassHandle klass, int size, TRAPS); |