< prev index next >

src/hotspot/share/prims/cdsoffsets.cpp

Print this page

        

*** 29,38 **** --- 29,45 ---- #include "memory/filemap.hpp" #include "memory/allocation.hpp" #include "memory/allocation.inline.hpp" #include "prims/cdsoffsets.hpp" + CDSOffsets::CDSOffsets(const char* name, int offset, CDSOffsets* next) { + _name = NEW_C_HEAP_ARRAY(char, strlen(name) + 1, mtInternal); + strcpy(_name, name); + _offset = offset; + _next = next; + } + CDSOffsets* CDSOffsets::_all = NULL; #define ADD_NEXT(list, name, value) \ list->add_end(new CDSOffsets(name, value, NULL)) #define CREATE_OFFSET_MAPS \
< prev index next >