Code segment unload: Difference between revisions

Scala contribution added.
(Added Java)
(Scala contribution added.)
Line 60:
The [https://docs.python.org/3.4/reference/simple_stmts.html?highlight=del#grammar-token-del_stmt del] statement can make objects (both code and data), available for reuse.
 
=={{header|Scala}}==
As the situation for Scala in a JVM concerned, the in the entry for its sister JVM language, [[#Kotlin]] applies too.
=={{header|Racket}}==
 
Racket has a JIT compiler that translates functions to machine code whenever they are applied. When such a function is garbage-collected, the JITted machine code is released or re-used with it. Therefore, to reclaim some executable code segment, simply drop references to the function.
 
Anonymous user