TU Darmstadt / ULB / TUbiblio

new Scala() instance of Java: a Comparison of the Memory Behaviour of Java and Scala Programs

Sewe, Andreas ; Mezini, Mira ; Sarimbekov, Aibek ; Ansaloni, Danilo ; Binder, Walter ; Ricci, Nathan ; Guyer, Samuel Z. :
new Scala() instance of Java: a Comparison of the Memory Behaviour of Java and Scala Programs.
In: International Symposium on Memory Management, 15-16 Jun 2012, Beijing, China. In: ISMM '12 . ACM , New York, NY, USA
[ Konferenzveröffentlichung] , (2012)

Kurzbeschreibung (Abstract)

While often designed with a single language in mind, managed runtimes like the Java virtual machine~(JVM) have become the target of not one but many languages, all of which benefit from the runtime's services. One of these services is automatic memory management. In this paper, we compare and contrast the memory behaviour of programs written in Java and Scala, respectively, two languages which both target the same platform: the JVM. We both analyze core object demographics like object lifetimes as well as secondary properties of objects like their associated monitors and identity hash-codes. We find that objects in Scala programs have lower survival rates and higher rates of immutability, which is only partly explained by the memory behaviour of objects representing closures or boxed primitives. Other metrics vary more by benchmark than language.

Typ des Eintrags: Konferenzveröffentlichung
Erschienen: 2012
Autor(en): Sewe, Andreas ; Mezini, Mira ; Sarimbekov, Aibek ; Ansaloni, Danilo ; Binder, Walter ; Ricci, Nathan ; Guyer, Samuel Z.
Titel: new Scala() instance of Java: a Comparison of the Memory Behaviour of Java and Scala Programs
Sprache: Englisch
Kurzbeschreibung (Abstract):

While often designed with a single language in mind, managed runtimes like the Java virtual machine~(JVM) have become the target of not one but many languages, all of which benefit from the runtime's services. One of these services is automatic memory management. In this paper, we compare and contrast the memory behaviour of programs written in Java and Scala, respectively, two languages which both target the same platform: the JVM. We both analyze core object demographics like object lifetimes as well as secondary properties of objects like their associated monitors and identity hash-codes. We find that objects in Scala programs have lower survival rates and higher rates of immutability, which is only partly explained by the memory behaviour of objects representing closures or boxed primitives. Other metrics vary more by benchmark than language.

Buchtitel: Proceedings of the International Symposium on Memory Management
Reihe: ISMM '12
Ort: New York, NY, USA
Verlag: ACM
Freie Schlagworte: Java, object demographics, Scala
Fachbereich(e)/-gebiet(e): 20 Fachbereich Informatik > Softwaretechnik
LOEWE > LOEWE-Zentren > CASED – Center for Advanced Security Research Darmstadt
20 Fachbereich Informatik
Zentrale Einrichtungen
LOEWE
LOEWE > LOEWE-Zentren
Veranstaltungstitel: International Symposium on Memory Management
Veranstaltungsort: Beijing, China
Veranstaltungsdatum: 15-16 Jun 2012
Hinterlegungsdatum: 17 Apr 2012 14:29
ID-Nummer: doi:10.1145/2258996.2259010
Verwandte URLs:
Export:

Optionen (nur für Redakteure)

Eintrag anzeigen Eintrag anzeigen