attribute weak added to __kill_r for c++ compability