< prev index next >

src/hotspot/share/prims/jvmtiExport.hpp

Print this page

        

*** 418,428 **** address _code_end; public: JvmtiCodeBlobDesc(const char *name, address code_begin, address code_end) { assert(name != NULL, "all code blobs must be named"); ! strncpy(_name, name, sizeof(_name)); _name[sizeof(_name)-1] = '\0'; _code_begin = code_begin; _code_end = code_end; } char* name() { return _name; } --- 418,428 ---- address _code_end; public: JvmtiCodeBlobDesc(const char *name, address code_begin, address code_end) { assert(name != NULL, "all code blobs must be named"); ! strncpy(_name, name, sizeof(_name) - 1); _name[sizeof(_name)-1] = '\0'; _code_begin = code_begin; _code_end = code_end; } char* name() { return _name; }
< prev index next >