上一页 1 ··· 86 87 88 89 90 91 92 93 94 ··· 102 下一页
摘要: https://developer.apple.com/library/content/documentation/Performance/Conceptual/ManagingMemory/Articles/MallocDebug.html#//apple_ref/doc/uid/20001884 阅读全文
posted @ 2017-08-01 18:43 zzfx 阅读(337) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/yhyr_ycy/article/details/52566105 GC,即就是Java垃圾回收机制。目前主流的JVM(HotSpot)采用的是分代收集算法。与C++不同的是,Java采用的是类似于树形结构的可达性分析法来判断对象是否还存在引用。即:从gcr 阅读全文
posted @ 2017-08-01 15:45 zzfx 阅读(614) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/buutterfly/article/details/6617375 内存溢出 out of memory,是指程序在申请内存时,没有足够的内存空间供其使用,出现out of memory;比如申请了一个integer,但给它存了long才能存下的数,那就是 阅读全文
posted @ 2017-07-28 18:49 zzfx 阅读(123) 评论(0) 推荐(0)
摘要: https://en.wikipedia.org/wiki/Memory_management Memory management is a form of resource management applied to computer memory. The essential requireme 阅读全文
posted @ 2017-07-28 11:41 zzfx 阅读(826) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/hunter8777/article/details/6327704 C++中的RAII全称是“Resource acquisition is initialization”,直译为“资源获取就是初始化”。但是这翻译并没有显示出这个惯用法的真正内涵。RAII 阅读全文
posted @ 2017-07-27 19:34 zzfx 阅读(544) 评论(0) 推荐(0)
摘要: http://www.jellythink.com/archives/101 前言 在写C++设计模式——单例模式的时候,在写到实例销毁时,设计的GC类是很巧妙的,而这一巧妙的设计就是根据当对象的生命周期结束时会自动调用其析构函数的,而这一巧妙的设计也是有专业的名词的——RAII。那以下将围绕RAI 阅读全文
posted @ 2017-07-27 19:33 zzfx 阅读(462) 评论(0) 推荐(0)
摘要: #define try if(!setjmp(Jump_Buffer)) 返回try现场后重新执行判断,所以有两次执行。 http://blog.csdn.net/tian_dao_chou_qin/article/details/6386621 1.概述 什么是异常?异常一般指的是程序运行期(Ru 阅读全文
posted @ 2017-07-27 18:46 zzfx 阅读(1987) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/lihao21/article/details/47610309 Pimpl(pointer to implementation, 指向实现的指针)是一种常用的,用来对“类的接口与实现”进行解耦的方法。这个技巧可以避免在头文件中暴露私有细节(见下图1),因此 阅读全文
posted @ 2017-07-27 18:16 zzfx 阅读(500) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/bonchoix/article/details/8046727 一个函数如果说是“异常安全”的,必须同时满足以下两个条件:1.不泄漏任何资源;2.不允许破坏数据。 我们先通过两个反面的例子开始。 第一个是造成资源泄漏的例子。一个类Type,内含一个互斥锁成 阅读全文
posted @ 2017-07-27 16:47 zzfx 阅读(420) 评论(0) 推荐(1)
摘要: http://blog.csdn.net/womendeaiwoming/article/details/44243571 OS中的崩溃类型 在这里了解一下XCode用来表示各种崩溃类型的术语,补充一些这方面的各知识。崩溃通常是指操作系统向正在运行的程序发送的信号,所以我们在查看崩溃日志时,常常看到 阅读全文
posted @ 2017-07-27 10:53 zzfx 阅读(931) 评论(0) 推荐(0)
摘要: http://m.blog.csdn.net/kangguang/article/details/62501490 用汇编语言编写的软件跟用脚本或标记语言编写的Web应用的差别在于,前者在出现问题时会崩溃,由于Web应用运行在浏览器环境中,所以Web应用很少会对内存的使用造成破坏或是导致浏览器崩溃。 阅读全文
posted @ 2017-07-27 10:49 zzfx 阅读(625) 评论(0) 推荐(0)
摘要: 异常处理的本质:状态回滚或者状态维护。 https://en.wikipedia.org/wiki/Exception_handling In general, an exception breaks the normal flow of execution and executes a pre-r 阅读全文
posted @ 2017-07-26 19:43 zzfx 阅读(653) 评论(0) 推荐(0)
摘要: https://github.com/Draveness/Analyze/blob/master/contents/objc/黑箱中的%20retain%20和%20release.md 写在前面 在接口设计时,我们经常要考虑某些意义上的平衡。在内存管理中也是这样,Objective-C 同时为我们 阅读全文
posted @ 2017-07-26 15:46 zzfx 阅读(352) 评论(0) 推荐(0)
摘要: 手动管理的栈帧 http://draveness.me/autoreleasepool.html 关注仓库,及时获得更新:iOS-Source-Code-Analyze Follow: Draveness · Github 由于 Objective-C 中的内存管理是一个比较大的话题,所以会分为两篇 阅读全文
posted @ 2017-07-26 13:11 zzfx 阅读(297) 评论(0) 推荐(0)
摘要: Every program must deal with errors as they occur at runtime. The program, for example, might not be able to open a file, or perhaps it cannot parse a 阅读全文
posted @ 2017-07-25 23:59 zzfx 阅读(154) 评论(0) 推荐(0)
摘要: https://developer.apple.com/documentation/foundation/nsautoreleasepool An object that supports Cocoa’s reference-counted memory management system. An 阅读全文
posted @ 2017-07-25 23:54 zzfx 阅读(277) 评论(0) 推荐(0)
摘要: http://www.cocoachina.com/ios/20151103/14007.html 本文翻译自 Ryan Kaplan 的 More than you want to know about @synchronized 因为原文一些内容写的不太准确,我按照我的理解做出了批注和补充。 如 阅读全文
posted @ 2017-07-25 12:10 zzfx 阅读(871) 评论(0) 推荐(0)
摘要: http://www.cocoawithlove.com/2010/01/what-is-meta-class-in-objective-c.html In this post, I look at one of the stranger concepts in Objective-C — the 阅读全文
posted @ 2017-07-25 11:26 zzfx 阅读(187) 评论(0) 推荐(0)
摘要: http://www.sealiesoftware.com/blog/archive/2009/04/14/objc_explain_Classes_and_metaclasses.html Objective-C is a class-based object system. Each objec 阅读全文
posted @ 2017-07-25 11:04 zzfx 阅读(205) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/biosli/p/NSObject_inherit_2.html 函数调用 Objective-C是一门动态语言,一个函数是由一个selector(SEL),和一个implement(IML)组成的。Selector相当于门牌号,而Implement才是 阅读全文
posted @ 2017-07-25 10:41 zzfx 阅读(277) 评论(0) 推荐(0)
上一页 1 ··· 86 87 88 89 90 91 92 93 94 ··· 102 下一页