src/hotspot/share/compiler/oopMap.cpp
changeset 58083 9046db64ca39
parent 55310 966a51af2986
child 58527 f9cc0141574c
equal deleted inserted replaced
58081:8b08eaf9a0eb 58083:9046db64ca39
   730 
   730 
   731 ImmutableOopMapSet* ImmutableOopMapBuilder::build() {
   731 ImmutableOopMapSet* ImmutableOopMapBuilder::build() {
   732   _required = heap_size();
   732   _required = heap_size();
   733 
   733 
   734   // We need to allocate a chunk big enough to hold the ImmutableOopMapSet and all of its ImmutableOopMaps
   734   // We need to allocate a chunk big enough to hold the ImmutableOopMapSet and all of its ImmutableOopMaps
   735   address buffer = (address) NEW_C_HEAP_ARRAY(unsigned char, _required, mtCode);
   735   address buffer = NEW_C_HEAP_ARRAY(unsigned char, _required, mtCode);
   736   return generate_into(buffer);
   736   return generate_into(buffer);
   737 }
   737 }
   738 
   738 
   739 ImmutableOopMapSet* ImmutableOopMapSet::build_from(const OopMapSet* oopmap_set) {
   739 ImmutableOopMapSet* ImmutableOopMapSet::build_from(const OopMapSet* oopmap_set) {
   740   ResourceMark mark;
   740   ResourceMark mark;