void* ResourceObj::operator new(size_t size){ char* r = (bootstrapping || allocatePersistent) ? (char *) selfs_malloc(size) : allocateResource(size); # if GENERATE_DEBUGGING_AIDS if (CheckAssertions && size && r == (char*) catchThisOne) breakpoint(); # endif return r; }
const char* MonitorWindow::compute_window_name() { const char *username= OS::get_user_name(); const char *hostName= OS::get_host_name(); const char* window_base_name = "Self Spy of "; char* window_name = (char*)selfs_malloc(strlen(window_base_name) + strlen(username) + 1 + strlen(hostName) + 1); sprintf(window_name, "Self Spy of %s@%s", username, hostName); return window_name; }