Structural Lock Correlation with Ownership Types

被引:0
作者
Lu, Yi [1 ]
Potter, John [1 ]
Xue, Jingling [1 ]
机构
[1] Univ New S Wales, Sch Comp Sci & Engn, Programming Languages & Compilers Grp, Sydney, NSW 2052, Australia
来源
PROGRAMMING LANGUAGES AND SYSTEMS | 2013年 / 7792卷
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Concurrent object-oriented programming languages coordinate conflicting memory accesses through locking, which relies on programmer discipline and suffers from a lack of modularity and compile-time support. Programmers typically work with large libraries of code whose locking behaviours are not formally and precisely specified; thus understanding and writing concurrent programs is notoriously difficult and error-prone. This paper proposes structural lock correlation, a new model for establishing structural connections between locks and the memory locations they protect, in an ownership-based type and effect system. Structural lock correlation enables modular specification of locking. It offers a compiler-checkable lock abstraction with an enforceable contract at interface boundaries, leading to improved safety, understandability and composability of concurrent program components.
引用
收藏
页码:391 / 410
页数:20
相关论文
共 50 条
  • [1] Ownership Downgrading for Ownership Types
    Lu, Yi
    Potter, John
    Xue, Jingling
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2009, 5904 : 144 - 160
  • [2] Understanding ownership types with dependent types
    Cameron, Nicholas
    Drossopoulou, Sophia
    Noble, James
    Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2013, 7850 : 84 - 108
  • [3] Ownership types: A survey
    Clarke, D., 1600, Springer Verlag (7850):
  • [4] Gradual ownership types
    IBBT-DistriNet, Department of Computer Science, Katholieke Universiteit Leuven, Belgium
    Lect. Notes Comput. Sci., 1600, (579-599):
  • [5] Gradual Ownership Types
    Sergey, Ilya
    Clarke, Dave
    PROGRAMMING LANGUAGES AND SYSTEMS, 2012, 7211 : 579 - 599
  • [6] Encoding ownership types in Java
    Victoria University of Wellington, New Zealand
    Lect. Notes Comput. Sci., (271-290):
  • [7] Ownership Types for the Join Calculus
    Patrignani, Marco
    Clarke, Dave
    Sangiorgi, Davide
    FORMAL TECHNIQUES FOR DISTRIBUTED SYSTEMS, 2011, 6722 : 289 - 303
  • [8] Ownership Transfer in Universe Types
    Mueller, Peter
    Rudich, Arsenii
    OOPSLA: 22ND INTERNATIONAL CONFERENCE ON OBJECT-ORIENTED PROGRAMMING, SYSTEMS, LANGUAGES, AND APPLICATIONS, PROCEEDINGS, 2007, : 461 - 478
  • [9] Ownership types for object encapsulation
    Boyapati, C
    Liskov, B
    Shrira, L
    ACM SIGPLAN NOTICES, 2003, 38 (01) : 213 - 223
  • [10] Ownership transfer in Universe Types
    Mueller, Peter
    Rudich, Arsenii
    ACM SIGPLAN NOTICES, 2007, 42 (10) : 461 - 478