摘要: Components Debugger Interfaces / |--------------| / | VM | debuggee ... 阅读全文
posted @ 2014-09-10 21:01 ridox 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 本文讲Java内置的java.util.logging软件包中的 api。主要解释怎样使用该api添加logging到你的application中,怎样加配置它等。但是本文不谈你应该把什么东西写到日志中。Note :本文谈到的api是Java 6中的。不涉及其他流行的Java logging api... 阅读全文
posted @ 2014-06-05 16:58 ridox 阅读(573) 评论(0) 推荐(0) 编辑
摘要: 从openjdk.java.net下载openjdk的软件包,你就获得了所有相关的源码。 强烈建议首先仔细看懂README-builds.html 指南。在执行 make all 之前,首先要 执行make sanity 来检验依赖是否满足,你最好解决所有的的error 和 warning。编译需要... 阅读全文
posted @ 2014-05-21 23:18 ridox 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 开发环境:操作系统: (uname -a output)Linux ubuntu 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/LinuxJDK 版本 : (java -ve... 阅读全文
posted @ 2014-05-01 11:45 ridox 阅读(878) 评论(0) 推荐(0) 编辑
摘要: Java 虚拟机工具接口(JVMTI)提供了一个编程接口,允许你(程序员)创建software agent 来监视和控制你的Java应用。 JVMTI 代替了原来的Java Virtual Machine Profiling Interface(JVMPI)。 这里说一下JVMTI的应用,比如我们使... 阅读全文
posted @ 2014-04-16 10:42 ridox 阅读(1100) 评论(0) 推荐(0) 编辑
摘要: 原文链接 : here根引用 Root references 一个实例死了,意味着它变得无用。只用程序员知道一个实例是否已经无用。为了让程序知道一个实例是否已经无用,我们可以使用编译器分析,引用计数, 或者 可达性分析。 可达性分析假设只要一个实例是可达的,它就是活着的。如果一个实例的引用直接包含在当前函数栈的一个槽(slot)中,它就是直接可达的。那些被可达实例引用的实例也是可达的。因此,可达性分析就是找出那些直接可达的引用,也就是根引用。 根引用的集合就做根集合。 当前执行函数(the mutator)的上下文中 有直接可达的数据,因此 找根集合就是在上下文中找实例的引用。... 阅读全文
posted @ 2014-04-04 23:02 ridox 阅读(3550) 评论(0) 推荐(0) 编辑
摘要: safepoint的定义很不规范,还跟JVM的具体实现有关,我们的讨论主要针对Hotspot VM。 先看看openjdk的官方解释: http://openjdk.java.net/groups/hotspot/docs/HotSpotGlossary.htmlSafepoint :在程序执行过程中,该点处的所有GC roots 是已知的 和 所有heap object contents是 一致的(consistent)。从全局观点来看,所有线程必须在GC 运行前,在一个safepoint处阻塞(block)。从局部观点来看,safepoint是一个代码块中特殊的一点,该处正在执行的... 阅读全文
posted @ 2014-03-30 23:12 ridox 阅读(986) 评论(0) 推荐(0) 编辑
摘要: 我们先来认识一下Error 和Exception, 两个都是Throwable类的直接子类。 Javadoc很好的说明了Error类:An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch. Most such errors are abnormal conditions.抛出Error时,程序就是出现了严重的错误,程序会立即终止运行。我们来看一下Error的一些子类和它们在javadoc中的说明:Annot 阅读全文
posted @ 2014-03-25 22:00 ridox 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 游戏说明:绿色数字(左边表示成功停止在整秒的次数,右边表示停止的总次数)点击stop,如果小数点后为0,即你停止的时间是整秒数,右上方斜杠左边数字加一把代码复制到这个网页 code run here,把原来的代码覆盖掉,然后点击左上角的三角 运行就可以了。import simpleguiimport randomimport mathtime = 0 message = "0:00.0"success = 0 total = 0def forBC(t): if t < 10 : return "0" + str(t) else: return st 阅读全文
posted @ 2014-01-07 17:12 ridox 阅读(4118) 评论(1) 推荐(0) 编辑
摘要: I can`t help surfing the useless bbs and some other kind of SNS. The time I begin to do it, it costs me a long to stop and do normal work. I just can`t stop. fuck! My boss asks me to report to him every week and forces me to make plun for next week. At the beginning of this term, it was good. As ... 阅读全文
posted @ 2014-01-01 21:05 ridox 阅读(194) 评论(0) 推荐(0) 编辑