In computer science, a constant pool is a data structure used in the bytecode format of many programming languages. It is used to store the constant values used in a program, such as numbers, strings, and references. Constant pools are used in Python, Java's virtual machine (also used by Scala, Kotlin, Groovy, and Clojure), Lua, C#'s Common Intermediate Language, BEAM (used by Erlang, Elixir, and Gleam), Smalltalk, and Squeak.

References

edit