首页> 外国专利> Garbage collection safepoint system using non-blocking asynchronous I/O call to copy data when the garbage collection safepoint is not in progress or is completed

Garbage collection safepoint system using non-blocking asynchronous I/O call to copy data when the garbage collection safepoint is not in progress or is completed

机译:垃圾收集安全点系统在垃圾收集安全点未进行或未完成时使用非阻塞异步I / O调用来复制数据

摘要

A system and method for providing direct socket input/output (I/O) for Java in a Java Virtual Machine (JVM) environment. During runtime, the system periodically garbage collects software objects in the Java memory space or heap. In accordance with an embodiment, the system provides a means to change the state of a thread performing the I/O which temporarily disallows garbage collection from taking place, thus guaranteeing that a receiving object in the heap does not move. The use of safepoints to prohibit GC from happening during the I/O call means that a global GC lock is not required. Non-blocking I/O is utilized, while prohibiting a thread from entering a GC safepoint during an I/O system call. The technique addresses disadvantages of previous methods by removing contended locks and by removing restrictions on allocation. In accordance with an embodiment, a special thread state can be used to prevent the thread from entering a GC safepoint.
机译:一种在Java虚拟机(JVM)环境中为Java提供直接套接字输入/输出(I / O)的系统和方法。在运行时,系统会定期垃圾收集Java内存空间或堆中的软件对象。根据一个实施例,该系统提供一种改变执行I / O的线程的状态的装置,该装置暂时禁止进行垃圾收集,从而保证堆中的接收对象不会移动。使用安全点来禁止在I / O调用期间发生GC,意味着不需要全局GC锁定。使用非阻塞I / O,同时在I / O系统调用期间禁止线程进入GC安全点。该技术通过删除竞争锁和删除分配限制来解决以前方法的缺点。根据实施例,可以使用特殊线程状态来防止线程进入GC安全点。

著录项

  • 公开/公告号US9213562B2

    专利类型

  • 公开/公告日2015-12-15

    原文格式PDF

  • 申请/专利权人 IGOR VERESOV;

    申请/专利号US20100972181

  • 发明设计人 IGOR VERESOV;

    申请日2010-12-17

  • 分类号G06F9/46;G06F9/455;G06F12/02;

  • 国家 US

  • 入库时间 2022-08-21 14:30:26

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号