Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/oopFactory.cpp @ 939:9eebd3ac74cf
6845368: large objects cause a crash or unexpected exception
Reviewed-by: jmasa, iveresov
author | jcoomes |
---|---|
date | Thu, 13 Aug 2009 16:22:45 -0700 |
parents | b37c246bf7ce |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
938:b37c246bf7ce | 939:9eebd3ac74cf |
---|---|
96 constantPoolCacheKlass* ck = constantPoolCacheKlass::cast(Universe::constantPoolCacheKlassObj()); | 96 constantPoolCacheKlass* ck = constantPoolCacheKlass::cast(Universe::constantPoolCacheKlassObj()); |
97 return ck->allocate(length, is_conc_safe, CHECK_NULL); | 97 return ck->allocate(length, is_conc_safe, CHECK_NULL); |
98 } | 98 } |
99 | 99 |
100 | 100 |
101 klassOop oopFactory::new_instanceKlass(int vtable_len, int itable_len, int static_field_size, | 101 klassOop oopFactory::new_instanceKlass(int vtable_len, int itable_len, |
102 int nonstatic_oop_map_count, ReferenceType rt, TRAPS) { | 102 int static_field_size, |
103 unsigned int nonstatic_oop_map_count, | |
104 ReferenceType rt, TRAPS) { | |
103 instanceKlassKlass* ikk = instanceKlassKlass::cast(Universe::instanceKlassKlassObj()); | 105 instanceKlassKlass* ikk = instanceKlassKlass::cast(Universe::instanceKlassKlassObj()); |
104 return ikk->allocate_instance_klass(vtable_len, itable_len, static_field_size, nonstatic_oop_map_count, rt, CHECK_NULL); | 106 return ikk->allocate_instance_klass(vtable_len, itable_len, static_field_size, nonstatic_oop_map_count, rt, CHECK_NULL); |
105 } | 107 } |
106 | 108 |
107 | 109 |