{"title":"Managing stack frames in Smalltalk","authors":"J. Moss","doi":"10.1145/29650.29675","DOIUrl":null,"url":null,"abstract":"The Smalltalk programming language allows contexts (stack frames) to be accessed and manipulated in very general ways. This sometimes requires that contexts be retained even after they have terminated executing, and that they be reclaimed other than by LIFO stack discipline. The authoritative definition of Smalltalk [Goldberg and Robson 83] uses reference counting garbage collection to manage contexts, an approach found to be inadequate in practice [Krasner, et al. 83]. Deutsch and Schiffman have described a technique that uses an actual stack as much as possible [Deutsch and Schiffman 84]. Here we offer a less complex technique that we expect will have lower total overhead and reclaim many frames sooner and more easily. We are implementing our technique as part of a state of the art Smalltalk interpreter. The approach may apply to other languages that allow indefinite lifetimes for execution contexts, be they interpreted or compiled.","PeriodicalId":414056,"journal":{"name":"SIGPLAN Conferences and Workshops","volume":"51 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1987-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"18","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"SIGPLAN Conferences and Workshops","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/29650.29675","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 18
Abstract
The Smalltalk programming language allows contexts (stack frames) to be accessed and manipulated in very general ways. This sometimes requires that contexts be retained even after they have terminated executing, and that they be reclaimed other than by LIFO stack discipline. The authoritative definition of Smalltalk [Goldberg and Robson 83] uses reference counting garbage collection to manage contexts, an approach found to be inadequate in practice [Krasner, et al. 83]. Deutsch and Schiffman have described a technique that uses an actual stack as much as possible [Deutsch and Schiffman 84]. Here we offer a less complex technique that we expect will have lower total overhead and reclaim many frames sooner and more easily. We are implementing our technique as part of a state of the art Smalltalk interpreter. The approach may apply to other languages that allow indefinite lifetimes for execution contexts, be they interpreted or compiled.
Smalltalk编程语言允许以非常通用的方式访问和操作上下文(堆栈帧)。这有时要求上下文即使在终止执行后也要保留,并且需要通过后进先出堆栈规则以外的方式回收它们。Smalltalk的权威定义[Goldberg and Robson 83]使用引用计数垃圾收集来管理上下文,这种方法在实践中被发现是不充分的[Krasner等人83]。Deutsch和Schiffman描述了一种尽可能使用实际堆栈的技术[Deutsch和Schiffman 84]。在这里,我们提供了一种不太复杂的技术,我们希望它能降低总开销,并更快更容易地回收许多帧。我们将我们的技术作为最先进的Smalltalk解释器的一部分来实现。这种方法也适用于其他允许执行上下文无限期生存期的语言,无论是解释的还是编译的。