首页> 外国专利> Method, system and product for identifying and executing locked read regions and locked write regions in programming languages that offer synchronization without explicit means to distinguish between such regions

Method, system and product for identifying and executing locked read regions and locked write regions in programming languages that offer synchronization without explicit means to distinguish between such regions

机译:用于以编程语言识别和执行锁定的读取区域和锁定的写入区域的方法,系统和产品,该编程语言提供同步,而没有明确的方法来区分这些区域

摘要

A technique for identifying and executing synchronized read regions and synchronized write regions is provided. The technique processes program code with a software tool to convert the code to an internal representation for the software tool and constructs a control flow graph of code blocks which also identifies the entry and exit points for each region of code subject to a lock. For each code block in the control flow graph, visibility analysis is performed. Each determined entry and exit point is moved to enclose the smallest set of code blocks subject to a lock which can be achieved without altering code semantics. A set of trees is created to represent the manner in which the synchronized regions are nested. If the tree contains at least one block previously identified, then the tree is marked a write. Otherwise, the tree is marked a read tree. A write lock is then created for the region in each tree identified as a write tree and a read lock is created for the regions in each tree identified as a read tree.
机译:提供了一种用于识别和执行同步读取区域和同步写入区域的技术。该技术使用软件工具处理程序代码,以将代码转换为软件工具的内部表示形式,并构建代码块的控制流程图,该代码图还标识了受锁定的每个代码区域的入口和出口点。对于控制流程图中的每个代码块,执行可见性分析。每个确定的入口和出口点都会移动,以包含受锁限制的最小代码块集,这可以在不更改代码语义的情况下实现。创建了一组树来表示嵌套同步区域的方式。如果树包含至少一个先前标识的块,则将树标记为写。否则,该树将标记为已读树。然后,为每个树中标识为写树的区域创建写锁,并为每个树中标识为读树的区域创建读锁。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号