# Do you need to root modules, functions and symbols?

**URL:** https://discourse.julialang.org/t/do-you-need-to-root-modules-functions-and-symbols/23377
**Category:** General Usage
**Created:** [April 21, 2019, 5:56pm UTC](https://discourse.julialang.org/t/do-you-need-to-root-modules-functions-and-symbols/23377 "2019-04-21T17:56:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kim366](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kim366/32/5756_2.png) [@kim366](https://discourse.julialang.org/u/kim366)
#### Post date: [April 21, 2019, 5:56pm UTC](https://discourse.julialang.org/t/do-you-need-to-root-modules-functions-and-symbols/23377/1 "2019-04-21T17:56:27Z")

</div>

I have noticed that jl\_sym\_t values do not seem to be rooted anywhere in the source and just live for the duration of the program. I would suspect the same is true for functions and modules, is this correct? If so, is this also true for anonymous functions that are returned by functions? Or do I need to root every type of value?

Thanks, happy Easter 🙂

---

<div class="post-metadata">

### Author: ![jameson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jameson/32/23_2.png) [@jameson](https://discourse.julialang.org/u/jameson)
#### Post date: [April 21, 2019, 6:21pm UTC](https://discourse.julialang.org/t/do-you-need-to-root-modules-functions-and-symbols/23377/2 "2019-04-21T18:21:38Z")

</div>

That is not true. Symbols are one of the only objects you can safely assume are permanently allocated. This is also true of some types (the results of typeof) and therefore most Modules. It is false of Functions.

---

<div class="post-metadata">

### Author: ![kim366](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kim366/32/5756_2.png) [@kim366](https://discourse.julialang.org/u/kim366)
#### Post date: [April 21, 2019, 7:07pm UTC](https://discourse.julialang.org/t/do-you-need-to-root-modules-functions-and-symbols/23377/3 "2019-04-21T19:07:11Z")

</div>

Very interesting. Thanks for the quick reply!
